VAR1:=EMA(EMA(CLOSE,3),1);
VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);
开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
T1:=控盘<0;
T2:=控盘>REF(控盘,3) AND 控盘>0;
T3:=控盘<REF(控盘,3) AND 控盘>0;
XG:T3 AND REF(EVERY(T2,BARSLAST(T1)),1);