弱市:=1.04;ZX买入:=20;
VAR1:=WINNER(CLOSE)*100;{
VAR2:=IF(YEAR>=9999 AND MONTH>0,0,1);}
VAR2:=YEAR>=2000;
VAR3:=(ma(AMOUNT,5)/MA(vol,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)<-0.4;
VAR4:=EMA(WINNER((LOW+HIGH)/2),12)*100;
VAR5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;
VAR6:=SMA(VAR5,3,1);
VAR7:=SMA(VAR6,3,1);
VAR8:=3*VAR6-2*VAR7;
VAR9:=LLV(LOW,5);
VARA:=HHV(HIGH,5);
VARB:=EMA((CLOSE-VAR9)/(VARA-VAR9)*100,4)*2;
VARC:=EMA(0.667*REF(VARB,1)+0.333*VARB,2);
VARD:=3*VARB-2*VARC;
VARE:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARF:=POW(MA(LOW,5),2)+MA(LOW,5);
VAR10:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VAR11:=(VARE-LLV(VARF,64))/(HHV(VAR10,64)-LLV(VARF,64))*150+65-10;
VAR12:=SMA(VAR11,3,1)*1.5-100;
VAR13:=SMA(VAR12,3,1);
VAR14:=3*VAR12-2*VAR13;
VAR15:=(HIGH+LOW+CLOSE*2)/4;
VAR16:=EMA(VAR15,13);
VAR17:=stD(VAR15,13);
VAR18:=(VAR15-VAR16)*100/VAR17;
VAR19:=EMA(VAR18,5);
VAR1A:=EMA(VAR19,13);
VAR1B:=EMA(VAR19,13)+200-100;
VAR1C:=EMA(VAR1B,10);
VAR1D:=3*VAR1B-2*VAR1C;
VAR1E:=VAR6+VARB+VAR12+VAR1B;
VAR1F:=VAR7+VARC+VAR13+VAR1C;
VAR20:=VAR8+VARD+VAR14+VAR1D;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=AMOUNT/VOL/100;
VAR23:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR24:=(VAR21-MA(VAR21,34))/(0.015*AVEDEV(VAR21,34));
VAR25:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR26:=(HIGH+LOW+CLOSE+VAR21)/4;
VAR27:=EMA(VAR26,24);
VAR28:=STD(VAR26,24);
VAR29:=(VAR26-VAR27)/VAR28*100;
VAR2A:=(VAR21-MA(VAR21,24))/(0.015*AVEDEV(VAR21,24));
VAR2B:=EMA(VAR29,5);
VAR2C:=(VAR22-MA(VAR22,21))/(0.015*AVEDEV(VAR22,21));
VAR2D:=(VAR23-MA(VAR23,90))/(0.015*AVEDEV(VAR23,90));
VAR2E:=((VAR2D+VAR2C+VAR2B+VAR2A+VAR24)/5+165)/4;
VAR2F:=(EMA(EMA(EMA(VAR2E,15),10),5)-25)*2+VAR25;
VAR30:=(VAR1E+VAR1F+VAR20*30)/32/5-15;
VAR31:=EMA(VAR30,13);
VAR32:=(VAR2E+VAR30)/2/1.1;
DX:=VAR32*VAR2, , {00050001};
VAR33:=(VAR2F+VAR31)/2*VAR2;
VAR34:=EMA(VAR33,1);
ZX:=EMA(VAR34,2), , {00050001};
VAR35:=CLOSE*50/100;
VAR36:=MA(VAR35,30)*0.83;
VAR37:=MA(VAR35/VAR36,3);
红箭头:crOSS(DX,ZX) AND COUNT(VAR37<弱市,3)>=1 OR CROSS(DX,0) AND COUNT(VAR37<弱市,3)>=1;