XA_2:=REF(CLOSE,1);
XA_3:=SMA(MAX(CLOSE-XA_2,0),7,1)/SMA(Abs(CLOSE-XA_2),7,1)*100;
XA_4:=IF(DATETODAY(DATE)<9890,1,1);
XA_5:=(CLOSE-LLV(LOW,18)*XA_4)/(HHV(HIGH,18)-LLV(LOW,18))*100;
XA_6:=SMA(XA_5,9,1)*XA_4;
XA_7:=SMA(XA_6,3,1)*XA_4;
XA_8:=IF(DATE<1171230,1,1);
做多能量:=3*XA_6-2*XA_7;
XA_9:=HHVBARS(HIGH,50)*XA_8;
XA_10:=(CLOSE-REF(OPEN,XA_9)*XA_8)/REF(OPEN,XA_9)*100;
长期筹码:=EMA(XA_6,6);
XA_11:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)*XA_8-LLV(LOW,36)*XA_4)*100;
做空能量:=SMA(XA_11,3,1)*XA_8;
X14:=crOSS(做多能量,做空能量) AND 做多能量>=长期筹码;
潜伏:X14;