VAR1:=C>1;
A: EMA(WINNER(CLOSE),10);
B: EMA(WINNER(CLOSE),34);
SD: EMA(WINNER(CLOSE),120);
VAR2:=EMA(WINNER(CLOSE),259);
VAR3:=MA(VOL,25)>MA(VOL,140);
VAR4:=MA(VOL,5)>MA(VOL,28);
L拐点: IF(VAR1,VAR3 AND CROSS(A,B) AND B<0.6 AND B>VAR2,0),STICK,LINETHICK3,COLOR00FF00;
跟踪: IF(VAR1,VAR4 AND CROSS(A,VAR2) AND B<0.6 AND VAR2>REF(VAR2,5) AND VAR2<0.6 AND (MA(CLOSE,300)>REF(MA(CLOSE,300),2) OR MA(CLOSE,21)>REF(MA(CLOSE,21),21)),0),STICK,LINETHICK3,COLORBLUE;
介入区域: IF(VAR1,A<0.15 AND ABS(A-B)<0.05 AND CROSS(A,B),0),STICK,LINETHICK3,COLORYELLOW;
高险区域: IF(VAR1,A>0.85 AND CLOSE<MA(CLOSE,5),0),STICK,LINETHICK3,COLORRED;
VAR1:=C>1;
A: EMA(WINNER(CLOSE),10);
B: EMA(WINNER(CLOSE),34);
SD: EMA(WINNER(CLOSE),120);
VAR2:=EMA(WINNER(CLOSE),259);
VAR3:=MA(VOL,25)>MA(VOL,140);
VAR4:=MA(VOL,5)>MA(VOL,28);
L拐点: IF(VAR1,VAR3 AND CROSS(A,B) AND B<0.6 AND B>VAR2,0),STICK,LINETHICK3,COLOR00FF00;
跟踪: IF(VAR1,VAR4 AND CROSS(A,VAR2) AND B<0.6 AND VAR2>REF(VAR2,5) AND VAR2<0.6 AND (MA(CLOSE,300)>REF(MA(CLOSE,300),2) OR MA(CLOSE,21)>REF(MA(CLOSE,21),21)),0),STICK,LINETHICK3,COLORBLUE;
介入区域: IF(VAR1,A<0.15 AND ABS(A-B)<0.05 AND CROSS(A,B),0),STICK,LINETHICK3,COLORYELLOW;
高险区域: IF(VAR1,A>0.85 AND CLOSE<MA(CLOSE,5),0),STICK,LINETHICK3,COLORRED;