副图强准信号,红柱买入蓝柱卖出,短线小白必收藏(源码分享)
<p>大家周末愉快,上周好的坏的都随风而去,复盘才是更重要的。三省吾身才能发现不足,在其中找到原因,不断学习进步。</p><p>今天给大家分享的指标名为“独霸一方”,首先该指标不含未来函数,大家可以放心使用,其次该指标的成功率在80%以上,可以说是一个成功率非常高的指标,同时该指标包含选股指标,具体我们先看下:</p><h1>指标源码:</h1><p>X_1:=REF(CLOSE,1);</p><p>X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;</p><p>X_3:=SMA(X_2,5,1);</p><p>X_4:=BARSLAST(X_2<=15)<5;</p><p>X_5:=SMA(X_2,5,1);</p><p>X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;</p><p>X_7:=FILTER(X_6,10);</p><p>X_8:=IF(CLOSE>REF((6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1),1),1,IF(CLOSE<REF((6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1),1),(-1),0));</p><p>X_9:=BARSLAST(NOT(X_8=0));</p><p>X_10:=IF(X_8=0,REF(X_8,X_9),X_8);</p><p>触发:X_7,NODRAW,COLORRED;</p><p>止损:CLOSE<REF(OPEN,BARSLAST(X_7>0)) AND COUNT(CLOSE<REF(OPEN,BARSLAST(X_7>0)),BARSLAST(X_7>0))=1 AND IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))>0,NODRAW,COLORWHITE;</p><p>止盈:HIGH/REF(CLOSE,BARSLAST(X_7>0))>=1.05 OR CLOSE/REF(CLOSE,BARSLAST(X_7>0))>=1.05 AND COUNT(止损,BARSLAST(X_7>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0))=0,NODRAW,COLORBLUE;</p><p>区间:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止损,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0)+1)=0,NODRAW,COLOR696960;</p><p>结束:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止损,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,5),MA(LOW,5)),1,(-1))),BARSLAST(X_7>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,5)),1,(-1))) OR 止损,NODRAW,COLORGREEN;</p><p>STICKLINE(触发>0,0,1,(-1),0),COLORRED;</p><p>STICKLINE(止盈>0,0.4,0.6,4,0),COLORBLUE;</p><p>STICKLINE(结束>0,0,0.7,(-1),0),COLORGREEN;</p><p>STICKLINE(止损>0,0.8,1,(-1),0),COLORWHITE;</p><p>X_11:=BARSLASTCOUNT(止盈>0);</p><p>DRAWTEXT(止盈>0,0.5,VAR2STR(X_11,0));</p><h1>指标源码(选股):</h1><p>X_1:=REF(CLOSE,1);</p><p>X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;</p><p>X_3:=SMA(X_2,5,1);</p><p>X_4:=BARSLAST(X_2<=15)<5;</p><p>X_5:=SMA(X_2,5,1);</p><p>X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;</p><p>BU:FILTER(X_6,10);</p><h1>“独霸一方”实战案例:</h1><h1>独霸一方”使用方法:</h1><p>1、如图所示,指标中红柱为“买点”信号买入,绿柱“卖点”卖出,每个红柱之后基本上都会有个绿柱信号,因此大家可以据此机械化操作。同时本指标绝对不含任何未来函数,信号不后补不飘移,收盘后信号不再变化。</p><p>2、该指标主要是辅助大家做波段使用,大家注意的是,对于明显处于下降趋势需要谨慎使用。</p> thanks
页:
[1]