Download MetaTrader 5

Scripts: InfoAccount

To add comments, please log in or register
Read the Forum and improve your rating!
Automated-Trading
Admin
99623
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
30739
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