自用指标 分时牛熊突破分时主图 通达信分时主图指标 源码 贴图
现价:=C,COLORWHITE,NODRAW;MA30:=EMA(CLOSE,30);
牛熊线:EMA(C,120),COLORFF0080,LINETHICK1;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;{www.9m8.cn 九毛八公式指标网}
阻力:L1+P1*7/8,COLORMAGENTA,LINETHICK1;
支撑:L1+P1*0.5/8,COLORGREEN,LINETHICK1;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'B'),COLORRED;
DRAWTEXT(LONGCROSS(现价,阻力,2),现价*1.005,'S'),COLORGREEN;
分时顶:=HHV(H,480),COLORRED,LINETHICK2;
DRAWICON(FILTER(CROSS(C,REF(分时顶,1)),10) AND C REF(分时顶,1),C,1);
DRAWTEXT(FILTER(CROSS(C,REF(分时顶,1)),10) AND C REF(分时顶,1),C*0.999,'突破'),COLORYELLOW;