Thanks for fxDreema. Really enjoying using it.
Q: How do I detect the last tick of the day so I can close out all my trades?
Reason I'm asking is that I'm trading during specific hours e.g. 7am - 8pm. However, using Tick Data Manager I'm finding some of the historical tick data ends at 5pm/6pm. And so the EA ends up rolling over into the following morning at 7am.
I thought maybe using a Candle ID of -1 to detect the time of the next tick and compare the time with the previous tick might do it. Then I can close out all the trades on the current tick, which would be the last tick of the day.
Please let me know if it's possible. Thx.