Adapting indicators to range bar charts

Questions about MultiCharts and user contributed studies.
Posts: 2
Joined: 30 Nov 2012
Has thanked: 1 time

Adapting indicators to range bar charts

Postby enlightenor » 07 Dec 2012

Does anyone understand how to adapt an indicator to a range bar chart? For example when I add a MACD indicator to a range bar chart, it seems to be still oriented to a time-based version and does not sync up with the range chart. I have attached a screen shot example. I imagine it is an adjustment of the code.

Anyone understand how to do this?
range bar macd.PNG
MACD added to a range bar chart
range bar macd.PNG (114.07 KiB) Viewed 99 times

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 557 times

Re: Adapting indicators to range bar charts

Postby Andrew MultiCharts » 07 Dec 2012

Hello Enlightenor,

If you have only 1 data series that is not time-based (points, for instance) and you apply any script to this data series it will be calculated only on it, so no on an time basis. Calculation of scripts is performed at the close of each bar, doesn't matter if it is time-based bar or not. The time scale at the bottom always shows time reference for any chart type and resolution.
These users thanked the author Andrew MultiCharts for the post:

Return to “MultiCharts”