Download MetaTrader 5

Scripts: InfoAccount

To add comments, please log in or register
Automated-Trading
Admin
110993
Automated-Trading  

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
35139
Alain Verleyen  

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