Variable Range Bar PlotPB Indicator

Questions about MultiCharts and user contributed studies.
wall richard
Posts: 60
Joined: 28 Dec 2007
Has thanked: 9 times
Been thanked: 1 time

Variable Range Bar PlotPB Indicator

Postby wall richard » 03 Jun 2012

Hello,

I would like to plot a paint bar indicator that has variable range bars. The paint bar will generate and build independent bars for each new bar. It is a newly formed indicator bar and not just painting of the instrument bar. The length of each range bar is user variable and corresponds to the H-L range chosen for each individual indicator bar.

A tick bar time frame is used, although the original instrument ticks are hidden or No Plotted.

Can independent Plot Bars be generated and displayed in an indicator?

Thanks,

Rick

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Variable Range Bar PlotPB Indicator

Postby TJ » 06 Jun 2012

Hello,

I would like to plot a paint bar indicator that has variable range bars. The paint bar will generate and build independent bars for each new bar. It is a newly formed indicator bar and not just painting of the instrument bar. The length of each range bar is user variable and corresponds to the H-L range chosen for each individual indicator bar.

A tick bar time frame is used, although the original instrument ticks are hidden or No Plotted.

Can independent Plot Bars be generated and displayed in an indicator?

Thanks,

Rick
can you draw a diagram(s) to illustrate your vision?

wall richard
Posts: 60
Joined: 28 Dec 2007
Has thanked: 9 times
Been thanked: 1 time

Re: Variable Range Bar PlotPB Indicator

Postby wall richard » 06 Jun 2012

I'm not sure I can draw a diagram or if the idea lends itself to a diagram. I'll try to be a little more specific. Ordinarily, an EL instrument reference frame (can be any form of frame) that is chosen. This reference frame sets the bar interval for all subsequent indicators and signals. This bar frame cannot be varied.

The whole crux of this idea is to create a variable reference frame that is controllable with a variable input. This would involve building a reference from a lower fractal data source such as real time tick data. Any reference frame (including the initial reference) may be chosen and produced within an indicator or signal.

Ordinarily, indicators display points or lines. An indicator producing an OHLC bar would be the goal.

Richard

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Variable Range Bar PlotPB Indicator

Postby JoshM » 06 Jun 2012

The whole crux of this idea is to create a variable reference frame that is controllable with a variable input.
In theory it's possible to make variable range bars depending on certain conditions (say after 50 tick a new bar, then after 125 tick, then 25 tick), but you'll still will have the problem that the x axis is fixed.

For example, if your chart is a 5 minute chart and your variable range bar indicator says it needs to plot 2 bars on that x axis point, how should that need to be done? There are probably more difficulties with this idea - that's why drawing a diagram/flowchart might be an helpful idea.

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Variable Range Bar PlotPB Indicator

Postby TJ » 06 Jun 2012

I'm not sure I can draw a diagram or if the idea lends itself to a diagram. ...
Richard
if you cannot draw a diagram, how do you suppose to create a chart of the same vision?

wall richard
Posts: 60
Joined: 28 Dec 2007
Has thanked: 9 times
Been thanked: 1 time

Re: Variable Range Bar PlotPB Indicator

Postby wall richard » 07 Jun 2012

In theory it's possible to make variable range bars depending on certain conditions (say after 50 tick a new bar, then after 125 tick, then 25 tick), but you'll still will have the problem that the x axis is fixed.

For example, if your chart is a 5 minute chart and your variable range bar indicator says it needs to plot 2 bars on that x axis point, how should that need to be done?
______________________________________________________________________________

Thanks JoshM,

Josh the X axis is not fixed. The indicator varies the X axis reference frame for each individual bar. The indicator will never plot more than one X axis point for any individual bar.

Richard

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Variable Range Bar PlotPB Indicator

Postby TJ » 07 Jun 2012

In theory it's possible to make variable range bars depending on certain conditions (say after 50 tick a new bar, then after 125 tick, then 25 tick), but you'll still will have the problem that the x axis is fixed.

For example, if your chart is a 5 minute chart and your variable range bar indicator says it needs to plot 2 bars on that x axis point, how should that need to be done? ...
Richard
If you can imagine it,
if you can visualize it,
if you can quantify it,
if you can articulate it,
it can be coded.

wall richard
Posts: 60
Joined: 28 Dec 2007
Has thanked: 9 times
Been thanked: 1 time

Re: Variable Range Bar PlotPB Indicator

Postby wall richard » 07 Jun 2012

If you can imagine it,
if you can visualize it,
if you can quantify it,
if you can articulate it,
it can be coded.

Thanks for the encouragement. I am at the coding stage now. I have coded an indicator with an OHLC array. The input is tick data. Next is plotting an OHLC data bar from the OHLC array. Anyone with thoughts about coding this last step?

Thanks,

Richard

wall richard
Posts: 60
Joined: 28 Dec 2007
Has thanked: 9 times
Been thanked: 1 time

Re: Variable Range Bar PlotPB Indicator

Postby wall richard » 08 Jun 2012

Coding is progressing. Using an intrabar array indicator I am able to plot both the "synthetic" bar opening and close. By synthetic I mean there is no direct connection between the instrument plot and indicator plot.

I'm now coding intrabar highest high and lowest low for the synthetic bar.

Richard

wall richard
Posts: 60
Joined: 28 Dec 2007
Has thanked: 9 times
Been thanked: 1 time

Re: Variable Range Bar PlotPB Indicator

Postby wall richard » 09 Jun 2012

Hello,

Here is what a "synthetic" OHLC bar looks like. The top panel is OHLC plot from the instrument itself. The second panel is a synthrtic OHLC plot from an array indicator. The plots are exactly alike.

Richard
Attachments
RWW1212.png
(93.44 KiB) Downloaded 563 times


Return to “MultiCharts”