寫了一段代碼 過濾掉開盤的成交量,但是運行后~~
作者:開拓者 TB 來源:cxh99.com 發布時間:2016年01月20日
- 咨詢內容:
寫了一段代碼 過濾掉開盤的成交量,但是運行后 我過濾的 9:00-9:10 那兩根 5分鐘K 線 的成交量 依然在下面顯示,請問 代碼有什么問題嗎?
//過濾掉開盤前10分鐘的成交量//
Vars
Bool conditiontime;
Bool conditiontotal;
Begin
{
conditiontime=
((time>=091500 and Time <= 145500)Or (time>211000 and time <235955)OR(time >=000000 and time <=022500));
If
(conditiontime and vol>0)
PlotNumeric ("vol",vol);
}
End
- TB技術人員:
另外請教 一下 time 跟 currenttime 在運行時候 有什么區別嗎?