+1 888 340 6572

AtCommentaryBar

From MultiCharts
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This reserved word returns a value of True on the bar clicked by the user. It will return a value of False for all other bars.

This allows you to optimize your trading strategies, analysis techniques, and functions for speed, as it will allow PowerLanguage to skip all commentary-related calculations for all bars except for the one where the commentary is requested

Usage

AtCommentaryBar

Notes

Example

The following statements display a 50-bar average of the volume in the Expert Commentary window but avoid calculating this 50-bar average for every other bar of the chart:

if AtCommentaryBar = True then 
    Commentary("The 50-bar vol avg: ", Average(Volume, 50));