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);
ZBVARC:=3*SMA((INDEXC-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,D))*100,20,1)-2*SMA(SMA
((INDEXC-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,75))*100,20,1),15,1);
ZBVARD:=3*SMA((INDEXO-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,D))*100,20,1)-2*SMA(SMA
((INDEXO-LLV(INDEXL,D))/(HHV(INDEXH,D)-LLV(INDEXL,75))*100,20,1),15,1);
ZBVARE:=REF(LOW,1)*0.9;
ZBVARF:=LOW*0.9;
ZBVAR10:=(ZBVARF*vol+ZBVARE*(CAPITAL-VOL))/CAPITAL;
ZBVAR11:=EMA(ZBVAR10,30);
ZBVAR12:=ZBVAR11-CLOSE;
ZBVAR13:=REF(CLOSE,1);
ZBVAR14:=SMA(MAX(CLOSE-ZBVAR13,0),7,1)/SMA(ABS(CLOSE-ZBVAR13),7,1)*100;
ZBVAR15:=SMA(MAX(CLOSE-ZBVAR13,0),13,1)/SMA(ABS(CLOSE-ZBVAR13),13,1)*100;
ZBVAR16:=BARSCOUNT(CLOSE);
ZBVAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
ZBVAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
ZBVAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
ZBVAR1A:=(SMA(ZBVAR19,4,1)-50)*2;
ZBVAR1B:=SMA(ZBVAR1A,3,1);
ZBVAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
ZBVAR1D:=SMA(ZBVAR1C,4,1);
ZBVAR1E:=SMA(ZBVAR1D,3,1);
ZBVAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
ZBVAR20:=IF(ZBVAR17<=25 AND ZBVAR18<-95 AND ZBVAR1F>20 AND ZBVAR1B<-30 AND ZBVAR1E<30 AND ZBVAR12>=-0.25 AND ZBVAR14<22 AND ZBVAR15<28 AND ZBVAR16>50,80,0);
核能:=IF(ZBVAR1<0,ZBVAR2,0);
牛角:=ZBVAR20,COLORYELLOW;
预警:=IF(ZBVAR7>=200 AND ZBVAR6>=150,15,IF(ZBVAR7<=-200 AND ZBVAR6<=-150,-15,ZBVAR9))+60,COLOR00FF00;
ZBVAR2B:=核能>38 AND 预警<55;
有反弹:ZBVAR2B AND COUNT(ZBVAR2B,30)=1;