February 15th, 2011
Size: 5.23 KB
Downloaded: 416 times
834
fluxsmith
Minimum value seen in period. Should return the same values as the standard MIN, which as of b18 has been fixed to reduce iteration. With that fixed the only advantage this has over the standard is memory reduction when used as a component and not displayed. (Both versions are now efficient with CalculateOnBarClose == false.)
Version 2 - Corrected calculation errors when COBC == false && Input != Low
July 4th, 2010
Size: 2.32 KB
Downloaded: 260 times
526
fluxsmith
Wikipedia calls this a 'Modified Moving Average'. Traders may know it as Welles Wilder's Moving Average, as it is the averaging method used in many of his indicators.
It's conceptually simpler than an EMA, the basic formula being:
average = (newValue + priorAverage * (n - 1)) / n
However, for any number of periods 'n', the outcome is identical to EMA(2 * n - 1). Since my basic indicators are all about efficient code reuse that is the implementation used here. Using the EMA formula is also slightly more CPU efficient than the formula above.
Returns the Pearson product-moment correlation coefficient of the input series. This requires iteration, so should probably be used with CalculateOnBarClose == true.
Version 2 - Solves a /0 error, returns 0 if price is unchanged for all of the bars in the calculation.
July 4th, 2010
Size: 2.52 KB
Downloaded: 211 times
529
fluxsmith
Polarized Fractal Efficiency. This does not return similar values to the NT supplied PFE, which does not implement the formulas I've found by this name. My indicator's waveform is similar enough to thinkorswim's to conclude that I have implemented the algorithm represented correctly. This indicator does not iterate. Version 1.0.
Relative Vigor Index, from John Ehlers, in Technical Analysis of Stocks & Commodities, January 2002. Signal is crossing of trigger line. Length should be the dominant cycle length.
Version 1.0
(BTW - This is a completely different indicator than NT's 'RVI')