Henk8
- ago
Hi,
Is it possible to create the Bollinger %B indicator? Formula is very simple:

(Close-Lowerband)/(Upperband -Lowerband).

Or can you create this via the building blocks?

And some kind of latch? If the %B crosses the 0 line, it stays open as long it doesn't cross another value of the %B
0
190
Solved
5 Replies

Reply

Bookmark

Sort
Cone8
 ( 23.56% )
- ago
#1
Sometimes you can apply Transformer Indicators (MathIndOpInd), but there are too many operations that would require multiple Transforms - so don't try it here.

The TASC Indicator BollingerPctBSmoothed is the same indicator (multiplied by 100) for all practical purposes. See for yourself in a C# Code Window.
CODE:
using WealthLab.TASC; using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Data; using WealthLab.Indicators; using System.Collections.Generic; namespace WealthScript4 { public class MyStrategy : UserStrategyBase { public override void Initialize(BarHistory bars) {          ind1 = new BollingerPctBSmoothed(bars, 20, 2); // the 2 here is the smoothing period, not SD, which is another special calc          PlotIndicator(ind1, WLColor.FromArgb(255,85,125,245), PlotStyle.ThickLine);          BBLower bBLower = BBLower.Series(bars.Close, 20, 2.0);              BBUpper bBUpper = BBUpper.Series(bars.Close, 20, 2.0);              TimeSeries ts = 100 * (bars.Close - bBLower) / (bBUpper - bBLower);          PlotTimeSeriesLine(ts, "my %B", ind1.PaneTag, WLColor.Gold); } public override void Execute(BarHistory bars, int idx) { }       private IndicatorBase ind1; } }


Another option is to create a Custom Indicator yourself in Admin mode. Then you can use it in blocks.
0
Best Answer
Henk8
- ago
#2
I saw it's a smoothed version of Sylvain Vervoort.(Typo in the description). I don't know him personally but I know who he is. Do i have acces to this admin section?
0
Cone8
 ( 23.56% )
- ago
#3
You just have to run WealthLab "as Administrator" and follow the instructions for creating a custom indicator. It requires a bit of coding.
1
Henk8
- ago
#4
FYI

Indicator exists but if you filter on Bollinger you wouldn't find it. It's BBand



2
- ago
#5
Yeah, there are different namings to many indicators. PercentB is one of them, pretty recognized, and apparently grandfathered from WL6.
0

Reply

Bookmark

Sort