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

 

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.

Reason: