{稳赚波段}
XA_1:=4;
XA_2:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),XA_1);
XA_3:=HIGH-REF(HIGH,1);
XA_4:=REF(LOW,1)-LOW;
XA_5:=EXPMEMA(IF(XA_3>0 AND XA_3>XA_4,XA_3,0),XA_1);
XA_6:=EXPMEMA(IF(XA_4>0 AND XA_4>XA_3,XA_4,0),XA_1);
XA_7:=XA_5*100/XA_2;
XA_8:=XA_6*100/XA_2;
XA_9:=CROSS(XA_7,XA_8) AND CROSS(XA_7,30);
XA_10:=XA_7-REF(XA_7,1)>7 AND XA_7-XA_8>4;
XA_11:=CLOSE/REF(CLOSE,1)>=1.05;
买:XA_9 AND XA_10 AND XA_11;