N:=40;
wr21:=100-100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
WR42:=100-100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
B0:IF(vol>1.2*REF(VOL,1) AND VOL>1.5*MA(VOL,10),2,0),coloryellow;
B1:=IF(MA(CLOSE,30)>=REF(MA(CLOSE,30),1)AND crOSS(WR21,N),5,0);
B2:=IF(MA(CLOSE,30)>=REF(MA(CLOSE,30),1)AND CROSS(WR42,N),5,0);
B3:=IF(MA(CLOSE,30)>=REF(MA(CLOSE,30),1) AND (WR21-REF(WR21,1))>30,5,0);
B:B0+B1+B2+B3,colorred;
S1:=IF(MA(CLOSE,30)<REF(MA(CLOSE,30),1)AND CROSS(80,WR21),-5,0);
S2:=IF(MA(CLOSE,30)<REF(MA(CLOSE,30),1)AND CROSS(80,WR42),-5,0);
S:S1+S2,colorgreen;
轴:0,colorblue;