【通达信】箱顶箱底(选手、箱底、减仓、低吸)-指标公式源码
MA1:MA(CLOSE,20),COLORYELLOW,LINETHICK2;
MA2:IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORYELLOW,LINETHICK2; MA3:IF(REF(MA1,1)>MA1,MA1,DRAWNULL),COLORBLUE,LINETHICK2; VA1:=EMA(C,5); VA2:=EMA(C,20);
DRAWTEXT(CROSS(VA1,VA2),VA1*0.97,'加码'),COLOR00FF3A; 选手:=MA(C,2);
箱顶:MA(REF(HHV(C,30),1),2),LINETHICK2,COLORFFFFE5; 箱底:MA(REF(LLV(C,30),1),2),LINETHICK2,COLORGREEN; T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100; T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100; VAR1:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=SMA(VAR3,3,1);
DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75,H*1.03,'减仓'),COLORYELLOW; DRAWTEXT(CROSS(VAR3,VAR4) AND VAR3<40,C*0.97,'低吸'),COLORFFFFE5; STICKLINE((C
【通达信】箱顶箱底(选手、箱底、减仓、低吸)-指标公式效果图
(文档来源:若水财经社区)