Using interpretation window

Note: Please read How to write your own chart commentary article before proceeding.

Interpretation window (Window->Interpretation) shows chart-sensitive commentaries. To add a interpretation just use Formula Editor and add commentary code after the code for the indicator. Please note that to get the best performance you should use conditional statement that ensures that interpretation code is executed only in "commentary" mode.

if( Status("action") == actionCommentary )
{
// printf statements here....
}

Example:

Plot( Close, "Price", -1, 64 );
Plot( SAR( Prefs( 50 ), Prefs( 51 ) ), "SAR",-17, 8+16 );

if( Status("action") == actionCommentary )
{
 printf("The Parabolic SAR provides excellent exit points. \n");
 printf("You should Close long positions when the price falls below\n");
 printf("the SAR AND Close Short positions when the price rises above the SAR.\n");
 printf( WriteIf( Graph1 > Close, "SAR is above close", "SAR is below close" ) );
}