通达信龙回头副图指标 源码分享




F:=100*(C-REF(C,1))/REF(C,1);

小昨:=IF(C<REF(O,1) AND F<0,1,0);

S1:=小昨;

小前:=IF(C<REF(O,2) AND F<0,1,0),LINETHICK0;

S2:=小前;

A1:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1));

A2:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1));

A3:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1));

STICKLINE(A1 AND A2 ,0,3,3,0)COLORGREEN;

STICKLINE(A1 AND A2 ,0,1,3,0)COLORBLUE;

STICKLINE(A1 AND A2 AND A3,0,5,3,0)COLORYELLOW;

STICKLINE(A1 AND A2 AND A3,0,3,3,0)COLORFF00FF;

STICKLINE(A1 AND A2 AND A3,0,1,3,0)COLORBLUE;

DRAWTEXT(A3=1,3.8,'全仓'),COLORYELLOW;

出击: ZIG(3,6)>REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)<REF(ZIG

(3,6),2),COLORWHITE,LINETHICK2;

DRAWTEXT(出击=1,0.8,'突袭'),COLORWHITE;

且退: ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG

(3,10),2),COLORYELLOW,LINETHICK2;

DRAWTEXT(且退=1,1.3,'撤退'),COLORYELLOW;

VAR3:=PEAKBARS(3,15,1)<10;

VAR5:=IF(VAR3=1,2,0);

顶:= IF(VAR5=2,2,0);

大胜:IF(顶>REF(顶,1),2,0),COLORRED,LINETHICK2;

DRAWTEXT(大胜=2,2,'逢高出'),COLORGREEN;

VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;

VAR400:=EMA(VAR300,5);

操盘:=3*VAR300-2*VAR400;

A4:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;

DRAWTEXT(A4,0.2.1,'关注'),COLORYELLOW;

选底:TROUGHBARS(3,15,1)<4,NODRAW;

DRAWTEXT(FILTER(选底=1,3),0.2,'抄底'),COLOR00FF00;

逢低买:CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ;

DRAWTEXT(逢低买>0,2,'逢低买');



未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图