AccountStopoutMode
AccountStopoutMode
Returns the calculation mode for the Stop Out level.
int AccountStopoutMode();Returned value
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.
Example:
int level=AccountStopoutLevel();
if(AccountStopoutMode()==0)
Print("StopOut level = ", level, "%");
else
Print("StopOut level = ", level, " ", AccountCurrency());Last updated on