Nicolellis Range Bars
Author: gazman
Creation Date: 1/6/2011 12:30 AM
profile picture

gazman

#1
Anybody with experience in coding these? In WLD 4?
profile picture

Eugene

#2
Not for WLD4 but as far as WL6 is concerned, I'll try adding "Range bars" to the list of possible enhancements to the Community ChartStyles library.
profile picture

Cone

#3
Another customer requested range bars at the last Traders' Expo. While the Chart Style would be a plus, the difficulty is providing methods that allow the creation of indicators using the Range Bar series, which is the whole purpose of Range Bars. This is a significant challenge since Range Bars, like other Chart Styles that don't use regular time along the x-axis, are not synch'd with the primary DataSeries.

It seems that it would be possible by creating DataSeries in the context of Range Bars and then synchronizing the result, but this requires more thought and investigation.

In summary, anyone interested in Range Bars would be disappointed only having the Chart style without the ability to apply the result to standard indicators.
profile picture

dansmo

#4
@ Cone
This can be done just as I did it with Flexible Renkos and with Flexible Renko Indicators.
profile picture

Eugene

#5
In this case, the customer can build his range bar DataSeries using an approach similar to the one documented in this Wealth-Lab Wiki article:

WealthScript Techniques | Creating Constant Volume Synthetic Bars
profile picture

Cone

#6
@dansmo, I don't really follow what you did. Is the implementation in that post? Are you doing like I showed, or did you find a better way?

@Eugene,
That's the way to start, and it will look fine on a Range Bar chart, but the problem is trading it. You still have synchronize to the base series; similar to a SetScale() / RestoreScale().
... I just looked more closely at what you did there. Duplicating values or leaving gaps won't produce the correct result for indicators. What I originally thought you had done was "pack" the CVB's so that they occurred contiguously in the primary series. That's how gbeltrame created the Range Bars here. An indicator could operate correctly on this. What remains, however, is the need to self-synch the series for plotting and trading.
profile picture

dansmo

#7
QUOTE:
@dansmo, I don't really follow what you did. Is the implementation in that post? Are you doing like I showed, or did you find a better way?


I did it the way you showed. It now works fine and Indicators can be used just like classic indicators.
profile picture

gazman

#8
All,

Have headed down the path of using PlotSyntheticSymbol by creating 4 separate data series for the OHLC. Am using WLD4 - sorry haven't made the transition from Pascal like procedural languages to OO languages.

Am working on logic to 'create' the OHLC for the Synthetic 'Symbol' based on a Range Bar variable being the range of each bar. Think that this will work for creating each bar although I am not sure how WLD4 will plot the Range Bars (i.e synthetic symbol) against the WLD4 time scale. Haven't seen an implementation of P&F in WLD4, which would face similar issues, so if anybody can provide some a&g on this area that would be appreciated. Renko should have faced the same problem and the Line Break but can't access the WLD code for these 2 chart styles - anybody a&g on how to do this?

Next issue will be accessing the Synthetic Symbol to apply rules for entry and exit. Think this should be OK because each of the OHLC is a separate series.

Any input to make my job easier would be appreciated. Would be happy to share the code if I can complete the job and it works.
profile picture

The_Viper

#9
I would also like to look at range bars.

I reloaded chart style extension but do not see Range Bars. Are you planning to add them, did I miss them?

How can I look at 10 tick range bars? And then how can I add the Bollinger band indicator to facilitate a buy signal?
profile picture

Eugene

#10
No, we never implemented the Range Bars chart style. Here's what's included:

Home - Community ChartStyles
profile picture

The_Viper

#11
So is there another way to look at 10 tick range bars in WL6?

And maybe add the Bollinger band indicator to facilitate a buy signal?

profile picture

Eugene

#12
Please cee Cone's reply #3 for the verdict on the Range Bars.
profile picture

kyokushin

#13
Since I'm interested in that topic too I would like to follow up on it. Unfortunately this link in reply #6 doesn't work:

QUOTE:
That's how gbeltrame created the Range Bars here.


Could you reactivate it?
profile picture

Eugene

#14
No, we have disabled WL4 forums on the new website so the link will no longer work. You can still see it at the dead website:

Range Bar Charts
(LINK PERMANENTLY DECOMMISSIONED AND NO LONGER AVAILABLE)