爆量警示腳本:
input:alert_v(10,"警示單量");
value1=q_TickVolume; //瞬間單量
value2=q_BidAskFlag; //1=外盤成交 -1=內盤成交
if value1>=alert_v and value2=1 then
begin
retmsg="單量:"+numtostr(value1,0);
ret=1;
print(file("C:\Users\admin\Downloads"),symbol,date,currenttime,c,value1); //輸出資料到指定資料夾
end;
- - - - - - - - - - - - - - - - - -