How to check if Account Trading is Allowed in MQL5?
How to check if Account Trading is Allowed in MQL5?
Loading saved threads...
ycomp · External communityPost link
External question — Stack Overflow Stack Exchange
Author: ycomp
Original post: https://stackoverflow.com/questions/74848075
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
What is the equivalent of MQL4's
AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)
in MQL5?
Also what about the equivalent of?
TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)
they are not listed here:
https://www.mql5.com/en/articles/81
Quote
Report
PaulB · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: PaulB
Original post: https://stackoverflow.com/a/74860882
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
In MQL5, the equivalent to
AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)
is the same function
AccountInfoInteger
.
It's also the same for
TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)
-
TerminalInfoInteger
Quote
Report
Dragon · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: Dragon
Original post: https://stackoverflow.com/a/74867660
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
You should take care of the official Documentation
and not only look at one single article from a user like us.
You can find it by useing "F1" on your written Code or behind the following links:
https://www.mql5.com/en/docs/constants/environment_state/accountinformation
https://www.mql5.com/en/docs/runtime/tradepermission
This should answer your questions.
Nice day
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External answer — Stack Overflow Stack Exchange Author: Dragon Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/a/74867660 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. You should take care of the official Documentation and not only look at one single article from a user like us. You can find it by useing "F1" on your written Code or behind the following links: https://www.mql5.com/en/docs/constants/environment_state/accountinformation https://www.mql5.com/en/docs/runtime/tradepermission This should answer your questions. Nice day
Checking account access…