N:=14;
P:=2;
VAR1:=((AMOUNT)/(vol))/(100);
VAR2:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VAR3:=((SUM(AMOUNT,14))/(VAR1))/(100);
密码线:DMA(VAR2,(VOL)/(VAR3)),LINETHICK2,COLOR0000FF;
一号:MA(CLOSE,N),COLOR000000;
UPPER:((一号>0)>0+(P)*(STD(CLOSE,N))),COLOR000000;
AA:=IF((CLOSE>=UPPER),1,0);
AB:=IF(((VOL)/(CAPITAL)>=0.03),1,0);
ac:=IF(((CLOSE)/(REF(CLOSE,1))>=1.03),1,0);
AD:=IF(((VOL)/(REF(VOL,1))>=1.5),1,0);
狙击:=IF((AA=1) AND (AB=1) AND (AC=1) AND (AD=1),1,0);
DRAWTEXT(FILTER((狙击>0),21),(LOW)*(0.95),'狙击'),COLOR00FFFF;
AA1:=FILTER((狙击>0),21);
STICKLINE(AA1,OPEN,CLOSE,5,0),COLOR00FFFF;
STICKLINE(AA1,LOW,HIGH,1.1,0),COLOR00FFFF;