「翔博精选指标」自用多空判势,红绿趋势(通达信公式 副图 源码
2022-05-02原创 编 辑:翔博软件
自用多空判势,红绿趋势
SJ:=1;
H1:EMA(C,12)*SJ;
H2:EMA(H1,50)*SJ;
VAR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
VAR2:=SMA(VAR1,5,1);
VAR3:=SMA(VAR2,8,1);
VAR4:=CROSS(VAR2,VAR3) AND VAR3< 20;
VAR5:=C>LLV(C,60)*1.13 AND VAR4;
VAR6:=IF(C>200,VAR4,VAR5);
STICKLINE(H1>H2,H1,H2,0,1),COLORRED;
STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;
XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
IF((H1>=CLOSE),H1,DRAWNULL),LINETHICK2,COLORGREEN;
IF((H1<CLOSE),H1,DRAWNULL),LINETHICK2,COLORRED;
XCLOSE2:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
IF((H2>=XCLOSE2),H2,DRAWNULL),LINETHICK3,COLORBLUE;
IF((H2<XCLOSE2),H2,DRAWNULL),LINETHICK3,COLORMAGENTA;