XA_1:=(CLOSE-ma(AMOUNT,13)/MA(vol,13)/100)/(MA(AMOUNT,13)/MA(VOL,13)/100)*100;
XA_2:=MA(MA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3),3);
XA_3:=3*MA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3)-2*XA_2;
XA_4:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100/2+22;
波段宝剑2:(IF(XA_1 AND (CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100<XA_4-2,1,0) AND crOSS(CLOSE,REF(MA(DMA((HIGH+LOW+CLOSE*2)/4.15,0.9),3),1)) AND XA_3<30)*0.5,COLORMAGENTA;