通达信指标公式分享:追庄之王
<p>效果图如下:仅供参考</p><p>指标不是万能的,请自我测试,注意投资风险。</p><p><br></p><p class="pgc-img-caption"></p><p>公式源码:</p><p>A:=LLV(L,34);</p><p>XD:=SMA(ABS(L-REF(L,1)),34,1);</p><p>CD:=SMA(MAX(L-REF(L,1),0),34,2);</p><p>收盘买:=-(EMA(IF(L<=A,XD/CD,-3),9));</p><p>抢反弹:收盘买<0 AND 收盘买>REF(收盘买,1) AND REF(EVERY(收盘买<REF(收盘买,1),3),1),COLORYELLOW;</p><p>RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);</p><p>J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);B:CROSS(J,REF(J+0.01,1)) AND X2 AND J<20 AND 收盘买<0 AND 收盘买>REF(收盘买,1),COLORRED;</p><p>B2:CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,COLORMAGENTA;DRAWTEXT(B2,0.35,'★关注★'),COLOR109090;B3:=抢反弹 AND REF(B2,1);</p><p>DRAWBAND(B2,RGB(255,100,30),B3,RGB(255,20,20));DRAWTEXT(B3,0.45,'★不买更后悔★');</p><p>B4:=抢反弹 AND REF(B2,1)OR REF(B2,2);DRAWTEXT(B3,0.35,'★反弹确认★'),COLORYELLOW;STICKLINE(B3,0,0.43,2,0),COLORYELLOW;</p><p>STICKLINE(B,0,0.43,2,0),COLORRED;DRAWTEXT(B,0.35,'★不买后悔★'),COLORRED;</p><p>B8:=REF((CROSS(J,REF(J+0.01,1)) AND X2 AND J<20),2) AND 抢反弹;</p><p>DRAWTEXT(B8,0.8,'★阶段底部确认★'),COLORYELLOW;DRAWBAND(B2,RGB(255,100,50),B8,RGB(255,30,30));</p><p>STICKLINE(B2,0,0.36,2,0),COLOR109090;STICKLINE(B2 AND REF(PSY<=10,1),0,0.68,2,0),COLOR801090;</p><p>DRAWTEXT(B2 AND REF(PSY<=10,1),0.68,'★买点★'),COLOR801090;</p><p>STICKLINE(B2 AND H>O AND C=H AND L<O AND L>REF(L,1) AND C>O AND REF((C<O),1),0,0.18,2,0)COLOR801090;</p><p>DRAWTEXT(B2 AND H>O AND C=H AND L<O AND L>REF(L,1) AND C>O AND REF((C<O),1),0.18,'阶段底部低吸★'),COLOR801090;</p><p>STICKLINE(B2 AND REF(RSI<=20,1),0,0.10,2,0),COLOR900000;</p> 路过,学习下 感谢楼主分享好资源 感谢分享好资源
页:
[1]