The market is open or you wouldn't have received a tick. But some brokers (e.g. FXCM) return market is closed in the first 5 minutes of roll over (5pm ET)
You can't avoid it. You must handle it. Same as you must handle NO_RESULT. I log the error, wait 30 seconds and return; check and retry the operation on the next tick.
WHRoeder:
Ok, understand.
The market is open or you wouldn't have received a tick. But some brokers (e.g. FXCM) return market is closed in the first 5 minutes of roll over (5pm ET)
You can't avoid it. You must handle it. Same as you must handle NO_RESULT. I log the error, wait 30 seconds and return; check and retry the operation on the next tick.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
How can i avoid error 132 MARKET IS CLOSE when opening an order ?
I need to check if market is closed before opening an order.