Simple test to determine if market is closed?
- Feature in StrategyTester
- Find out if a trade was stopped out
- Test if optimizing
I know I can check the hours but is there a simple test that can be done to determine if the market is open or closed?
In which context ?
context?
I just want to avoid placing trades or modify running orders when the market is closed in order not to mess up the log. It is an EA running 24/7
Just thought a little more about it and decided that it will work if I confine myself to do order type commands in the "start" routine. No ticks coming from a closed market
- www.mql5.com
context?
I just want to avoid placing trades or modify running orders when the market is closed in order not to mess up the log. It is an EA running 24/7
Just thought a little more about it and decided that it will work if I confine myself to do order type commands in the "start" routine. No ticks coming from a closed market