{参数M:=20}
AA1:=(CLOSE+HIGH+LOW+OPEN)/4;
AA2:=SUMBARS(VOL,CAPITAL);
AA3:=HHV(AA1,AA2);
AA4:=LLV(AA1,AA2);
AA5:=(2*AA1-AA4-REF(AA4,1))/(AA3-AA4);
AA6:=(AA1-AA4)/(AA3-AA4);
AA7:=IF(AA1<=AA4,AA5*60,AA6*60);
AA8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
AA9:=EMA(AA8,7);
AAA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
AAB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
OU1:=IF(AAA+AAB<7 AND CROSS(AA8,AA9) AND AA9<AA8 AND AA9<AAB,60,50);
CC1:= OU1=60;
BB1:=(C/REF(C,1)-1)*100>2;
BB2:=V>1.5*REF(V,1) AND V<5*REF(V,1);
SG:CC1 AND BB1 AND BB2;