Scripts: InfoAccount

 

InfoAccount:

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

InfoAccount script in operation

Author: Nikolay Kositsin

 
Is it possible to make such a script for MT4. I use it myself, it is very informative.
Files:
efqb2.mq4  5 kb
 

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.