I've written a simple strategy, but picked up a few problems (please see attached screen grab):
- My Limits (take profits) are not being hit
- Positions are closed at the end of the day even though Exit on Close is set to false (I'm using the default 24/5 session template)
- I open my position at 08:30 (NT bar time), but the execution only happens at 08:45 (on a M15 chart)
The code is at http://freetexthost.com/od24hu0oig
Many thanks

Comment