Navigation: Realtest Script Language > Script Sections >

Charts Section

 

 

 

This script section defines any lines to be plotted on bar or candlestick charts whenever they are viewed. If the active script does not include a Charts section then the default charts script charts.rts is applied.

Each item defined in the Charts section defines a data series line to display. The item name becomes the name of the line on the chart, and the item formula is evaluated for every bar and then plotted as a continuous line.

If a Charts item name begins with an underscore, that item will not be plotted. Rather, it will just serve as an intermediate variable that other items can refer to. This can be useful to avoid repeating the same expression several times or to calculate an indicator that requires several steps.

A format specification comment can be included in any item and has multiple purposes. If no format is specified, the item will be plotted along with the price bars and use their scale.

The accent {^} is used to plot this line in the top (indicator) pane rather than the price pane.  (You may have to press ‘i’ or open the chart options dialog to show the indicator pane.)

The vertical bar {|} is used to plot this line in the bottom (volume) pane rather than the price pane.  (You may have to press ‘v’ or open the chart options dialog to show the volume pane.) If no lower pane indicators are specified, the pane will show volume bars. (It is not currently possible to plot both indicators and volume bars in the lower pane.)

If a number format is specified, it will be used whenever the value if the item is displayed for a specific bar.

To apply Charts section contents to all currently open Chart windows, press F4 or click Apply in the Tool Bar.

Items defined above are plotted below.

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC