VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(10);
VAR11:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
STICKLINE(VAR12 REF(VAR12,1),0,VAR12*0.08,4,1),COLOR10E410;
减仓:IF(VAR12 REF(VAR12,1),VAR12,0),COLOR10E410,LINETHICK0;
STICKLINE(VAR9 REF(VAR9,1),0,VAR9*0.08,6,1),COLOR1010FF;
增仓:IF(VAR9 REF(VAR9,1),VAR9*0.2,0),COLORRED,LINETHICK0;
STICKLINE(VAR8 REF(VAR8,1),0,VAR8,6,1),COLOR10FFFF,LINETHICK0;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
A4:=MA(CLOSE,20);
A5:=(CLOSE MA(CLOSE,5));
A6:=(MA(CLOSE,5) MA(CLOSE,10));
A7:=(CLOSE MA(CLOSE,10));
A8:=(MA(CLOSE,5) MA(CLOSE,20));
A9:=(CLOSE MA (CLOSE,20));
A10:=REF(A4,1);
A11:=(A4 A10);
AVX:=(((((IF(A5,10,(0 - 10)) + IF (A6,10,(0 - 10))) + IF(A7,10,(0 -10))) + IF(A8,10,(0 -
10))) + IF(A9,10, (0 - 10))) + IF(A11,10,(0 -10))),COLOR0000FF;
XG:CROSS(K,D) AND CROSS(AVX,0) ;