I have a simple strategy that opens a trade (market Order) at a particular time and I wish to close the trade X bars later.
When I use the ExitAfterBars feature, the trade closes as expected in the strategy tester. However, when it is on a live account, it closes every time at the next bar.
For example, open at 11am on 1H bars and set the ExitAfterBars to 3
Then on the strategy tester it woks – exiting 3 bars later.
Run it live – it exits on the next bar.
Any ideas on why this might be happening?
can you send me your project to email@example.com? Does it happen in live or even in “sim” mode?
You must be logged in to reply to this topic.