ABC1:=(2*CLOSE+HIGH+LOW)/4;
ABC2:=EMA(EMA(EMA(ABC1,4),4),4);
J:=(ABC2-REF(ABC2,1))/REF(ABC2,1)*100;
D:=MA(J,3);
K:=MA(J,1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
MAA:=MACD>0;
LX:=BARSLASTCOUNT(J< 0);
T:=BARSLAST(crOSS(J< 0,0.5));
T2:=BARSLAST(CROSS(J>0,0.5));
双擎共振:J>=REF(J,T+2) AND COUNT(J>=REF(J,T+2),T2+1)=1 AND MAA AND C>O COLORRED;
VARTP:=NOT(DYNAINFO(4)=0);
VARST:=NOT(NAMELIKE('S') OR NAMELIKE('*'));
VAR688:=NOT(CODELIKE('688'));
VARTC8:=NOT(CODELIKE('8'));
VARTC4:=NOT(CODELIKE('4'));
VARGL:=VARTP AND VARST AND VAR688 AND VARTC8 AND VARTC4 ;
VAR1:=(3*C+O+L+H)/6;
VAR2:=EMA(EMA(VAR1,20),2);
VAR3:=HHV(VAR2,5);
VAR4:=VAR2-(VAR3-VAR2);
HSL:=V/CAPITAL*100<5;ZF:=C/REF(C,1)<1.03;
多空拐点:VAR3=VAR4 AND REF(VAR3,1)>REF(VAR4,1) AND VARGL AND HSL AND ZF AND C<=O;

