New article Testing Visualization: Account State Charts has been published:
Enjoy the process of testing with charts, displaying the balance - now all the necessary information is always in view!
I think, it is not only my wish to view the information about the account state
during testing in the visualization mode in a more informative form.
What was the amount of free margin before opening the last position? Where is the
balance curve directed to? How large was the drawdown on equity for the last day?
Some of these questions were discussed in the articles Testing Visualization: Functionality Enhancement and Testing Visualization: Trade History. But they do not contain any tool for quick and easy viewing the information on
the account. In this article we will discuss programs for drawing charts of the
account state during testing in the visualization mode. As an example we will examine
Balance and Equity charts. The article also contains instructions on building charts
of other account attributes.
Author: Andrey Khatimlianskii
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
double balance, equity;
IndicatorShortName( "vGrafBalance&Equity" );
IndicatorDigits( 2 );
SetIndexStyle( 0, DRAW_LINE );
SetIndexBuffer( 0, balance );
SetIndexLabel( 0, "Balance" );
SetIndexStyle( 1, DRAW_LINE );
SetIndexBuffer( 1, equity );
SetIndexLabel( 1, "Equity" );
balance = GlobalVariableGet( "vGrafBalance" );
equity  = GlobalVariableGet( "vGrafEquity" );