Reducing Indicator-Lag

The usual way to reduce Indicator lag in averaging formulas, such as the MA(), EMA, and Tilson T3(), is to try and dream up a completely new formula. This isn’t easy. It is often easier to remove lag from an already smoothed plot, than to improve the basic smoothing formula.

Indicator Delay is often an essential Indicator quality and (imo) is not the same as Indicator Lag. The ideal smoothing function is one with zero delay, i.e., one that tracks the price with a perfectly smooth-looking plot. Delay can be added later as an independent quality using the ref() function. Some smoothing formulas already have a sensitivity adjustment, these will not necessarily behave in the same manner as the LagReducing factor used below. Optimizing all parameters for best results is recommended.

The Lag-Reducing formula presented here can be applied to most averaging formulas and to indicators that are based on averages (like Bands). The lag reducing parameter (RLFactor) of the Reducelag() function can also be used to make formulas adaptive with respect to another price or Indicator quality. The image below shows how lag has been reduced for the Tilson T3 formula.

To see how this formula works Apply the code show below to a new indicator pane, open the Parameter window, and try  different settings.

function T3PriceT3Periods)
    e1    AMAPrice/ ( T3Periods ) );
    e2    AMAe1/ ( T3Periods ) );
    e3    AMAe2/ ( T3Periods ) );
    e4    AMAe3/ ( T3Periods ) );
    e5    AMAe4/ ( T3Periods ) );
    e6    AMAe5/ ( T3Periods ) );
    C1 = -3;
    C2 * ( );
    C3 = -* ( ) ^ 2;
    C4 = ( ) ^ 3;
    T3Result c1 e6 c2 e5 c3 e4 c4 e3;
    return NzT3Result );

function ReduceLagIndicatorRLFactor )
    return ( Indicator RefIndicator, -) ) ^ RLFactor*Indicator;

LRFactor         Param"Lag-Reducing Factor"1.70100.1 );
Periods         Param"T3 Periods"5110);
Sensitivity        Param"T3 Sensitivity 1"0.7030.03 );

I1 T3OPeriodsSensitivity );
I2 ReducelagI1LRFactor );

PlotC"Close"1128 );
PlotI1"\nBasic T3"2);
PlotI2"\nLag-Reduced T3"4styleNoRescale );

Comments are closed.