Set 開頭的指令就是IOG模式的作用了。
只要有IOG,就一定要開啟"細部回測",不是只有在開發策略時的回測要 ...
曾永政 發表於 11-11-23 08:47 AM
阿政大說的是,我查使用手冊 SetStopLoss function is evaluated intra-bar and not only on close of a bar, and can exit within the same bar as the entry.
這樣還需要在程式內再去開IOG嗎?
You may use below statements, instead of setstoploss.
If MarketPosition = 1 then sell next bar at (EntryPrice - XXXX) Stop;
If MarketPosition = -1 then buytocover next bar at (EntryPrice + XXXX) Stop;
XXX is the amount ($) of stop loss.