VAR1:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(VAR4,2)=LLV(VAR4,8);
VAR6:=crOSS(VAR4,REF(VAR4+0.01,1)) AND VAR5 AND VAR4<19;
VAR10:=REF(CLOSE,1);
VAR11:=SMA(MAX(CLOSE-VAR10,0),5,1)/SMA(Abs(CLOSE-VAR10),5,1)*1000;
VAR12:=VAR11-LLV(VAR11,10);
VAR13:=(MA(VAR12,2)*3+VAR12*13)/16;
VAR14:=IF(VAR13>13,MA(VAR13,2),VAR13)/6;
VAR17:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR (L<O AND O<=C),CLOSE,LOW)/3;
短线:=EMA((VAR17-MA(VAR17,36.0270012))/(0.015*AVEDEV(VAR17,36.0270012)),2.0332);
VAR24:=(2*CLOSE+HIGH+LOW)/4;
VAR26:=LLV(LOW,34);
VAR29:=HHV(HIGH,34);
VAR30:=EMA(((VAR24-VAR26)/(VAR29-VAR26))*100,8);
中线:=EMA(VAR30,20);
只做:=CODELIKE('60')||CODELIKE('00')||CODELIKE('30');
XG:只做 AND VAR6 AND 短线 < -150 AND VAR30 > 中线;
B:=SUM(AMOUNT*CLOSE,1)/SUM(AMOUNT,1);
B1:=EMA(B,5);
VAR5:=(B-B1)*100/B;
VAR6:=VAR5!=DRAWNULL;
VAR7:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR8:=SMA(VAR7,4,1);
VAR9:=SMA(VAR8,3,1);
异动:=CLOSE>=OPEN AND crOSS(VAR8,VAR9) AND VAR9<=50 AND VAR6;
TS:=RANGE(BARSLAST(异动>0),0,30);
VAR10:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
VAR11:=SMA(VAR10,6,1);
VAR12:=SMA(VAR11,3,1);
趋势:=VAR11>VAR12 AND VAR12>REF(VAR12,1) AND VAR6;
VAR13:=EMA(CLOSE,17);
资金:=VAR5>0 AND CLOSE>VAR13 AND VAR13>REF(VAR13,1);
VAR14:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR15:=SMA(VAR14,3,1);
VAR16:=SMA(VAR15,3,1);
VAR17:=3*VAR15-2*VAR16;
VAR18:=VAR17>=95;
VAR19:=REF(CLOSE,1);
VAR20:=SMA(MAX(CLOSE-VAR19,0),9,1)/SMA(Abs(CLOSE-VAR19),9,1)*100;
VAR21:=VAR20>=75;
VAR22:=FORCAST(EMA(CLOSE,5),6);
VAR23:=FORCAST(EMA(CLOSE,8),6);
VAR24:=FORCAST(EMA(CLOSE,11),6);
VAR25:=FORCAST(EMA(CLOSE,14),6);
VAR26:=FORCAST(EMA(CLOSE,17),6);
VAR27:=VAR22+VAR23+VAR24+VAR25-4*VAR26;
VAR28:=EMA(VAR27,2);
动能:=VAR28>REF(VAR28,1);
加速:=VAR18 OR VAR21;
四位一体:=资金+趋势+动能+加速;
XG:FILTER(REF(TS,1) AND 四位一体=4 AND REF(四位一体,1)< 4,10);

