MT4 Detect if broker is heding or netting accountg on EA

 

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.

 
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.

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.

MT4 does not have "netting" accounts. There are only "hedging" accounts in MT4.
 
Fernando Carreiro #:
MT4 does not have "netting" accounts. There are only "hedging" accounts in MT4.
thanks
Reason: