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
And we do this:
The function outputs whether there is a new tick on the instrument.
Great for OnTime. Only for eachsymbol, there must beadifferentTick
Wow, that's a lot of text.
MarketInfo(Symbol(),MODE_TRADEALLOWED)
This will only give you the trading authorisation status of the instrument. If the instrument is tradable, you will get true on it any day of the week.
Before sending an order, perform a check, http://docs.mql4.com/check/istradeallowed
And this refers to the auto-trade button.
I don't get it. Without auto-trading on, your EA shouldn't do anything at all.
I don't get it. If you don't enable auto-trading, your EA should not do anything at all.
Not true.
Perhaps it should be checked again. The last time I worked on this question was before the update of MQL4. At that time such a way indicated the possibility to trade on the symbol in general, not at a specific time. Besides, the help is now formulated in such a way that it does not give a clear answer. Let's wait until the weekend and check. Or may be someone has some American stocks in the list of symbols for which the market is now closed. Then we can check it now.
As for IsTradeAllowed indicated by Ramiz Mavludov, it is indeed correct. This function allows you to check the situation of a closed market. And you can know about it now in advance, instead of waiting for the weekend:
Result:
Perhaps it should be checked again. The last time I worked on this issue was before the update of MQL4. At that time such a way indicated the possibility to trade on the symbol in general, not at a specific time. Besides, the help is now formulated in such a way that it does not give a clear answer. Let's wait until the weekend and check. Or may be someone has some American stocks in the list of symbols for which the market is now closed. Then we can check it now.
As for IsTradeAllowed indicated by Ramiz Mavludov, it is indeed correct. This function allows you to check the situation of a closed market. And you can know about it now in advance, instead of waiting for the weekend:
Result:
Yes, it is.
I thought he meantboolIsTradeAllowed();.