MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Account information  AccountStopoutMode

 
int AccountStopoutMode( )
Returns the calculation mode for the Stop Out level. Calculation mode can take the following values:

0 - calculation of percentage ratio between margin and equity;
1 - comparison of the free margin level to the absolute value.
Sample:
int level=AccountStopoutLevel();
if(AccountStopoutMode()==0)
   Print("StopOut level = ", level, "%");
else
   Print("StopOut level = ", level, " ", AccountCurrency());