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.
    
    
    
    
    
        Rename
    
        It doesn't exist, but it sounds like you're referring to this one - 
https://www2.wealth-lab.com/wl5wiki/TrendQuality.ashx
    
https://www2.wealth-lab.com/wl5wiki/TrendQuality.ashx
        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; } }
        It indeed is using the BarHistory bars as input. Twice.
    
    
QUOTE:
is using the BarHistory bars as input
I see. It has to compute TR (TrueRange), so it needs BarHistory. Thanks for correcting me.
            Your Response
            
            Post
        
        
        
    
            Edit Post
            
        
        
        
    
            Login is required