通达信一支三压主图指标公式

M5:=MA(C,5);
M10:=MA(C,10);
M20:=MA(C,20);
M60:=MA(C,60);
A:=M5>=M60 AND M10>=M60 AND M20>=M60;
T:=BARSLAST(CROSS(A,0.5));
HT:=HHVBARS(H,T+1);
NOTEXT1:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,REF(H,T),ISLASTBAR,REF(H,T),0),COLORYELLOW,LINETHICK2;
NOTEXT2:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,REF(H,T),HT=0,REF(H,HT),1),COLORYELLOW,LINETHICK2;
NOTEXT3:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,REF(H,T),HT=0,(REF(H,HT)-REF(H,T))*0.382+REF(H,T),1),DOTLINE,COLORMAGENTA;
NOTEXT4:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,REF(H,T),HT=0,(REF(H,HT)-REF(H,T))*0.618+REF(H,T),1),DOTLINE,COLORGREEN;
STICKLINE(CURRBARSCOUNT=CONST(T)+1,C,O,1.8,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=CONST(T)+1,H,L,0,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=CONST(HT)+1,C,O,1.8,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=CONST(HT)+1,H,L,0,0),COLORYELLOW;
压力:NOTEXT2,NODRAW,COLORYELLOW;
支撑1:NOTEXT3,NODRAW,COLORMAGENTA;
支撑2:NOTEXT4,NODRAW,COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=CONST(T)+1,NOTEXT1*0.96,VARCAT(VARCAT('底部支撑价:',VAR2STR(NOTEXT1,2)),'元'))COLORYELLOW;

通达信一支三压主图指标公式

版权声明

本文仅代表作者观点,不代表无忧指标公式网立场。
本文系作者授权无忧指标公式网发表,未经许可,不得转载。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。本站无任何QQ群微信群