MMT:=(2*C+L+H)/4;
短线:=EMA(MMT,13);
MVA5:=MA(vol,5);
长线:=EMA(MMT,60);
总量:=AMOUNT;
量比:=V/REF(MA(V,5),1);
几倍:=1.9;
倍量量王:=总量>=REF(总量,1)*几倍 AND (IF(C<O,C>REF(C,1),1));
天量:=总量=HHV(总量,13);
量王:=天量&&倍量量王&&量比>1.9&&(BARSCOUNT(C)+1)>13;
BL:=BArslAST(量王=1 AND REF(量王,1)<>1);
BL1:=BARSLAST(C/REF(C,1)>1.09 AND C=H AND REF(C,1)/REF(C,2)<1.08 AND REF(C,2)/REF(C,3)<1.05 AND REF(BL,1)<>1);
TL1:=(HHV(H,30)-LLV(L,30))/LLV(L,30)<0.55 AND (HHV(H,13)-LLV(L,13))/LLV(L,13)<0.36 AND V<REF(V,BL)*0.468;
XP1:=BL1>0&&BL1<13&&H>C&&C>L&&V<REF(MVA5,1)&&TL1&&C/REF(C,1)<1.035&&C/短线<1.12&&C/长线<1.35&&(REF(C,1)-C)/REF(C,1)*100<6;
BL2:=BARSLAST(REF(C,1)/REF(C,2)>1.09 AND REF(C,1)=REF(H,1));
TL2:=(HHV(H,30)-LLV(L,30))/LLV(L,30)<0.55 AND (HHV(H,13)-LLV(L,13))/LLV(L,13)<0.36 AND V<REF(V,BL2)*0.368;
XP2:=BL2>0&&BL2<13&&H>C&&C>L&&V<REF(MVA5,1)&&TL2&&C/REF(C,1)<1.035&&C/短线<1.12&&C/长线<1.35&&(REF(C,1)-C)/REF(C,1)*100<6;
回马枪优化:XP1 OR XP2;