VARD1:=(C+H+O+L)/4;
买入:=XMA(VARD1,32)*(1-100/1000);
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;
DD2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;
J2:=3*K2-2*DD2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:crOSS(C,买入) AND BB1>BB2 AND C>REF(O,2);