ttechnik:
is return true in time (weekend)
When market is closed, your EA/Indicator don't receive tick, so no code is executed. Unless you are using a script ?
How can I get info that the market is closed?
IsTradeAllowed( |
) |
angevoyageur:
When market is closed, your EA/Indicator don't receive tick, so no code is executed. Unless you are using a script ?
When market is closed, your EA/Indicator don't receive tick, so no code is executed. Unless you are using a script ?
My code does not work that way.
My code in init(), in a while(true) loop.
ttechnik:
My code does not work that way.
My code in init(), in a while(true) loop.
Just some idea.
1. Send tiny pending order a hundred thousand miles away from current market price, and you'll get market is closed error.
2. Bar Time on M1 does not change at all, but TimeLocal already over a minute.
onewithzachy:
Just some idea.
1. Send tiny pending order a hundred thousand miles away from current market price, and you'll get market is closed error.
2. Bar Time on M1 does not change at all, but TimeLocal already over a minute.
ok, thank you!
WHRoeder:
- Init is expected to return. While there you can't open the parameter list.
- Why are you complicating your code with the while? Means you can't use the tester. Return from start and wait for the next tick.
I do not want to test. My algoritm too complicating for test.

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
How can I get info that the market is closed?