Commentary (Reserved Word)
This reserved word sends the expression (or list of expressions) to the Analysis Commentary window for whatever bar is selected on the price chart.
You can use this reserved word multiple times, but it does not add a carriage return after the expression or list of expressions.
Commentary("My Expression") ;
My Expression is the numerical, text string or true/false expression that is to be sent to the Analysis Commentary window. You can send multiple expressions, commas must separate them.
Example
The following will result in the string "This is one line of commentary" being sent to the commentary window. Any additional commentary sent will be placed on the same line.
Commentary("This is one line of commentary") ;
You can use the Commentary reserved word multiple times, and it will not include a carriage return at the end of each expression (or list of expressions) sent. In order to generate a message that includes carriage returns, you will have to use either the newline or CommentaryCL reserved word.
Additional Examples
To include a carriage return in your Commentary, use the reserved word newline as a commentary expression where needed. you can also use the reserved word CommentaryCL instead.
For example, the following statements produce the commentary in the example above:
Commentary("This is one ");
Commentary("line of commentary");
To include line breaks in the commentary, the reserved word NewLine needs to be used. For example, the following statements produce two lines of commentary text:
Commentary("The 10-bar avg of the close", NewLine);
Commentary(" is:", Average(Close, 10));