D:=72;
ZBVAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
ZBVAR2:=2*Abs(ZBVAR1);
ZBVAR3:=100-3*SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
ZBVAR4:=100-3*SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
ZBVAR5:=(HIGH+LOW+CLOSE)/3;
ZBVAR6:=(ZBVAR5-MA(ZBVAR5,14))/(0.015*AVEDEV(ZBVAR5,14));
ZBVAR7:=(ZBVAR5-MA(ZBVAR5,89))/(0.015*AVEDEV(ZBVAR5,89));
ZBVAR8:=IF(ZBVAR6>=150 AND ZBVAR6<200 AND ZBVAR7>=150 AND ZBVAR7<200,10,0);
ZBVAR9:=IF(ZBVAR6<=-150 AND ZBVAR6>-200 AND ZBVAR7<=-150 AND ZBVAR7>-200,-10,ZBVAR8);
ZBVARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
ZBVARB:=100-ABS(ZBVARA);
OX:=IF(ZBVARB<90,ZBVARB,100),COLORFFCC66;
ZBVAR21:=IF(ZBVAR1>0,ZBVAR1,0);
预警:=IF(ZBVAR7>=200 AND ZBVAR6>=150,15,IF(ZBVAR7<=-200 AND ZBVAR6<=-150,-15,ZBVAR9))+60,COLOR00FF00;
ZBVAR2A:=ZBVAR21>48 AND 预警>60 AND OX<100;
拉升在即:ZBVAR2A AND COUNT(ZBVAR2A,30)=1;