How to get Stop Out Level and Margin call level

shanmugapradeep

Master Trader
Dec 18, 2020
180
16
54
40
Hello,



Different brokers have different Margin call and Stop out level percentage. How to get that using MQL4 code?



I am trying something like this but not working



MQL4:
double marginCallLevel = AccountInfoDouble(ACCOUNT_MARGIN_CALL_LEVEL);
 
double stopOutLevel = AccountInfoDouble(ACCOUNT_MARGIN_STOPOUT_LEVEL);