通达信抄顶逃底,柱体红进蓝出公式副图源码

VAR1:=(2*CLOSE+HIGH+LOW)/4;

VAR2:=LLV(LOW,5);

VAR3:=HHV(HIGH,4);

VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,4);

VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,2);

STICKLINE(CROSS(VAR5,VAR4) AND VAR4>70,1,0,1,0),COLORCYAN;

STICKLINE(CROSS(VAR4,VAR5) AND VAR4<30,1,0,1,0),COLORMAGENTA;