想問一下,如何在特定一段時間內滿足條件的才警示呢
例如想警示早上9點半前總量有1萬張的股票,當在10點以後創新高,則跳警示
本來有寫這樣的語法去過濾
input: timeline(093000); setinputname(1,"時間切算點");
variable:RangeVolume(0);
if date <> date[1] then RangeVolume = 0;
if Time < timeline then RangeVolume = q_DailyVolume;
但發現9半以後才1萬張的也還是會滿足,想問該怎麼處理或該怎麼寫才能限定9半前的總量就好?
2 評論