VAR11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR22:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR33:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR44:=(VAR11+2*VAR22+3*VAR33)/6;
VAR55:=MA(VAR44,3)-STD(VAR44,3);
乖离6:=VAR55<-6 AND VAR55>-9;
VAR111:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR222:=SMA(Abs(LOW-VAR111),13,1)/SMA(MAX(LOW-VAR111,0),10,1);
VAR333:=EMA(VAR222,10);
VAR444:=LLV(LOW,33);
VAR555:=EMA(IF(LOW<=VAR444,VAR333,0),3);
XG99:=VAR555>REF(VAR555,1);
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
进场:=VAR5>REF(VAR5,1);
洗盘:=VAR5<REF(VAR5,1);
钱袋子:=REF(进场,1) AND REF(进场,2) AND 洗盘 AND (EXIST(乖离6 OR XG99,6));
MA18:=MA(CLOSE,18);
mtm:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND crOSS(DX,MA(DX,2));
TJ:=COUNT(买,3)=1 AND 买 AND (EXIST(乖离6 OR XG99,6));
主力:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
XG:=CROSS(主力,散户) AND 主力<-10 AND (EXIST(乖离6 OR XG99,6));
红柱:XG OR 钱袋子 OR TJ;