- ago
What is the WL8 indicator equivalent of the WL6 TrendQuality indicator? TrendQuality takes a BarHistory and period input, but WL8 has no such indicators with these inputs.
0
323
Solved
5 Replies

Reply

Bookmark

Sort
Cone8
 ( 2.67% )
- ago
#1
It doesn't exist, but it sounds like you're referring to this one -
https://www2.wealth-lab.com/wl5wiki/TrendQuality.ashx
1
- ago
#2
It goes something like this:

CODE:
//create indicators and other objects here, this is executed prior to the main trading loop public override void Initialize(BarHistory bars) {          int period = 20;          TimeSeries tq = new TimeSeries(bars.DateTimes, 0);                    for (int bar = period; bar < bars.Count; bar++)          {             double net = Momentum.Series(bars.Close, period)[bar];             double gross = TR.Series(bars).Sum(period)[bar];             double val = (gross > 0) ? (net / gross) * 100 : 0;             tq[bar] = val;          }       }
1
Best Answer
- ago
#3
But the solution in Post #2 is not using BarHistory input and TrendQuality (mentioned in Post #1) does. Are we talking about the same indicator? Would the solution in Post #2 be the same as the TrendMeter indicator in WL8, which only takes TimeSeries input? The description of both is similar.
0
- ago
#4
It indeed is using the BarHistory bars as input. Twice.
0
- ago
#5
QUOTE:
is using the BarHistory bars as input

I see. It has to compute TR (TrueRange), so it needs BarHistory. Thanks for correcting me.
0

Reply

Bookmark

Sort