Auftrag beendet
Spezifikation
This seems like such a basic thing, but there are dozens of forum threads proposing various solutions, and I've spent a couple of hours reading and trying to implement them, and haven't been able to get anything to work.
The problem is very, very simple: based on the daily close, I want to be able to place orders (and close orders) at the next available time - as soon as the market is open for trading. You can wait 'til the market is open to do the condition checking (in fact, you probably need to in order to calculate a valid stop loss, in the event of a gap down), but it seems that sometimes the market open is after the daily candle open, so the usual techniques for trading at the start of the bar don't work on the daily timeframe.
Acceptance criteria:
1. No Market closed errors in the strategy tester log
2. No missed entries or exits when the conditions are met
This should be easy for someone who knows what they're doing.