VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);
高位:90,COLORFFFF00;
低位:20,COLORMAGENTA;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
阳:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF;
阴:(EMA(((0.667*REF(阳,1))+(0.333*阳)),2)*VAR1),COLORFFFFFF;
{H1:IF( CROSS(C2,C1),C2,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW;
F1_:IF(CROSS(C2,C1),C2,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORRED;}
{DRAWTEXT(CROSS(C1,C2),REF(C2,1),'加仓'),COLORRED;
DRAWTEXT(CROSS(C2,C1),REF(C1,1),'卖'),COLORGREEN;}
{H2:IF( CROSS(C1,C2),C1,DRAWNULL),CROSSDOT,LINETHICK7,COLORMAGENTA;
F2_:IF(CROSS(C1,C2),C1,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORYELLOW;}
DRAWICON(CROSS(阳,阴) AND 阴>0,阴,1);
DRAWICON(CROSS(阴,阳) AND 阴<-100,阳,2);
DRAWICON(CROSS(阳,阴) AND 阴<0,阴,1);
DRAWICON(CROSS(阴,阳) AND 阴>-100,阳,2);
条件:=CROSS(阳,阴) AND 阳<40;
条件0:=CROSS(阴,阳) AND 阳>90;
TJ1:=CROSS(阳,阴);
TJ2:=CROSS(阴,阳);
TJ3:=CROSS(阳,阴) AND REF(阳,1)<20;
TJ4:=CROSS(阴,阳) AND REF(阳,1)>80;
{DRAWTEXT(条件,20,'买'),COLORWHITE;
DRAWTEXT(条件0,85,'卖'),COLORYELLOW;};