Download MetaTrader 5
To add comments, please log in or register
MQL5 Reference is available in 8 languages. Learn MQL5 in the language that suits you best!
Automated-Trading
Admin
94010
Automated-Trading 2012.10.09 16:04 

InfoAccount:

This is an informative script displaying data on the current trading account in the chart window.

InfoAccount script in operation

Author: Nikolay Kositsin

Alain Verleyen
Moderator
29545
Alain Verleyen 2013.12.26 19:55  

Such a simple script, and still there is a bug.

   ...
   +"StopoutLevel="+DoubleToString(AccountInfoDouble(ACCOUNT_MARGIN_LEVEL),0)+"\n"
   +"StopoutMode="+EnumToString(ENUM_ACCOUNT_STOPOUT_MODE(AccountInfoInteger(ACCOUNT_MARGIN_SO_MODE)))+"\n"

StopoutLevel isn't the same as ACCOUNT_MARGIN_LEVEL. So StopoutMode is displayed but not the value of this Stopout.

/
To add comments, please log in or register