cmarconetti: In order to specify the account margin mode (heding or netting system) in MT5 is possible to use something like: Is there something similar on MT4? After researching I think the answer is negative.
MT4 does not have "netting" accounts. There are only "hedging" accounts in MT4.
Is there ANY way and EA on MT4 could detect which margin mode the account is using? At the moment I am just manually entering buy/sell to check if I get 2 different trades, but that is not a solution for developing and EA to be used my different brokers/accounts.

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
In order to specify the account margin mode (heding or netting system) in MT5 is possible to use something like:
bool IsHedging(ENUM_ACCOUNT_MARGIN_MODE &margmod)
{
margmod = (ENUM_ACCOUNT_MARGIN_MODE)AccountInfoInteger(ACCOUNT_MARGIN_MODE);
return(margmod==ACCOUNT_MARGIN_MODE_RETAIL_HEDGING);
}
Is there something similar on MT4? After researching I think the answer is negative.
Is there ANY way and EA on MT4 could detect which margin mode the account is using?
At the moment I am just manually entering buy/sell to check if I get 2 different trades, but that is not a solution
for developing and EA to be used my different brokers/accounts.
Thanks for any input.