input: filterMode(1, "篩選方式", inputkind:=dict(["買盤",1], ["賣盤",-1]));
input: filterVolume(100, "大單門檻");
value1 = GetField("Time", "Tick"); // 時間
value2 = GetField("Close", "Tick"); // 價格
value3 = GetField("Volume", "Tick"); // 單量
value4 = GetField("BidAskFlag", "Tick"); // 外盤=1, 內盤=-1
Value5 = GetQuote("漲跌幅");
if filterMode=value4 and value4 = 1 and value3 >= filterVolume and date=currentDate then begin
這就是print的資料
ret=1;
end;
我想知道因為洗價就會不段印出有符合的條件, 但一樣的條件我不要,就是下次有才觸發
EX 大單50張觸發然後tick會印出一筆 下次TICK又出發50張再通知
但我發現我印出來都會重複
====大量成交==== 日期:2024/07/10 時間:10:09:00 股票名稱:中環 股票代碼:2323.TW 漲幅:0.38 價格:13.25 買進:89張 ====大量成交==== 日期:2024/07/10 時間:10:10:00 <=另外時間要怎改成當下TICK的時間? 股票名稱:中環 股票代碼:2323.TW 漲幅:0.38 價格:13.25 買進:89張 <=兩個89張 重複印出 ====大量成交==== 日期:2024/07/10 時間:11:08:00 股票名稱:中環 股票代碼:2323.TW 漲幅:0.38 價格:13.20 買進:77張
4 評論