因為有交易摩台電子盤
if A cross over B then buy("buy") 1 shares next bar at market;
if time_s > 015900 and time_s< 015959 and A cross under B then sell("sell") 1 shares next bar at market;
訊號無法出現 是因為 time_s 不能使用區間時間嗎?? 謝謝
假設你設為1分線!分線的時間為015900這種形式..它中間不會有015901這種K棒時間..
若你設為秒線,上述程式就能正常執行..
time_s 是K棒的收棒時間,而不是 各TICK 自身的時間
--------------------------------------------------------------------------------------------------------------
可以順便請問一下,那當 015903 的tick , 此時time_s 拿的的值是 015900 還是016000???
016000
你把滑鼠移到k棒上,它的時間就是 time 及 time_s 的時間