VAR1:=CLOSE/HHV(HIGH,500)<0.35;
VAR2:=REF(LOW,20)=LLV(LOW,41);
VAR2A:=BacKSET(ISLASTBAR,BArslAST(VAR2)+21);
VAR2B:=VAR2A>REF(VAR2A,1);
VAR3:=BARSLAST(VAR2)+20;
VAR4:=REF(LOW,VAR3);
VAR5:=LOW/VAR4-1<=0.02 AND LOW/VAR4-1>=-0.005 AND VAR1 ;
VAR6:=CLOSE/REF(CLOSE,1)>0.97;
VAR7:=LAST(LOW/VAR4-1>=-0.02,2,0);
BP:=VAR5 AND VAR6 AND VAR7;
DRAWICON(BP AND CURRBARSCOUNT<=VAR3,LOW*0.99,24);
支撑线:DRAWLINE(VAR2B,LOW,REF(VAR2B,1),REF(LOW,1),1);
DRAWICON(VAR2B,LOW*0.99,11);
DRAWTEXT(VAR2B,LOW*0.98,'建议设置止损价格');
DRAWNUMBER(VAR2B,LOW*0.97,支撑线*0.98);
DRAWTEXT(REFX(ISLASTBAR,8),LOW*0.98,'建议狙击价格');
DRAWNUMBER(REFX(ISLASTBAR,8),LOW*0.97,支撑线);