通达信顶底判断副图指标源码副图
去停牌:=DYNAINFO(13)>0;
MA3:=MA(C,3);
MA5:=MA(C,5);
上轨:=XS.LUP;
CY:=EMA((EMA(C*V,3)/EMA(V,3)+EMA(C*V,6)/EMA(V,6)
+EMA(C*V,12)/EMA(V,12)+EMA(C*V,24)/EMA(V,24))/4,18);
支撑:=1.06*CY;
涨停:=C>REF(C,1)*1.098 AND C=H;
回调突破1:=REF(COUNT(MA5>上轨,7)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
回调突破2:=REF(COUNT(MA5>上轨,7)>=1 AND CROSS(C,MA5),1) AND C<上轨 AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
回调突破3:=REF(COUNT(EVERY(涨停 AND C>O,3),6)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND CROSS(C,MA5) AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015 ;
预警:( 回调突破1 OR回调突破2 OR回调突破3)AND 去停牌 ;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
去停牌赋值:DYNAINFO(13)>0
MA3赋值:C的3日简单移动平均
MA5赋值:C的5日简单移动平均
上轨赋值:XS.LUP
CY赋值:EMA((EMA(C*V,3)/EMA(V,3)+EMA(C*V,6)/EMA(V,6)
+EMA(C*V,12)/EMA(V,12)+EMA(C*V,24)/EMA(V,24))/4,18)
支撑赋值:1.06*CY
涨停赋值:C>1日前的C*1.098 AND C=H
回调突破1赋值:REF(统计7日满足MA5>上轨的天数>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND C上穿MA5 AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015
回调突破2赋值:1日前的统计7日满足MA5>上轨的天数>=1 AND C上穿MA5 AND C<上轨 AND C>支撑 AND MA5>1日前的MA5 AND C>O AND C>1日前的C*1.015
回调突破3赋值:REF(COUNT(涨停 AND C>O最近3日一直存在,6)>=1 AND(MA5>REF(MA5,1) OR C>REF(C,1)OR C>O),1)AND C上穿MA5 AND C>支撑 AND MA5>REF(MA5,1) AND C>O AND C>REF(C,1)*1.015
输出预警:( 回调突破1 OR回调突破2 OR回调突破3)AND 去停牌