After an OrderSend, Error 133 may ALSO happens when a symbol is not allowed for some calendar reason. Example XAUUSD trading is forbidden during Independence Day Holiday (July 4th)...
Is there any function to anticipate this error like MarketInfo("XAUUSD", xxxxx) or something else?
I tried: MarketInfo(symbol, MODE_TRADEALLOWED) but it returns 1.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
After an OrderSend, Error 133 may ALSO happens when a symbol is not allowed for some calendar reason.
Example XAUUSD trading is forbidden during Independence Day Holiday (July 4th)...
Is there any function to anticipate this error like MarketInfo("XAUUSD", xxxxx) or something else?
I tried: MarketInfo(symbol, MODE_TRADEALLOWED) but it returns 1.