Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Median Average Adaptive Filter for Amibroker (AFL)
kaiji
about 14 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
amibroker, moving average

This indicator is by John Ehler and is an adaptive moving average that adjusts the smoothing parameter depending on the percentage difference between the outputs of the same-length medial and exponential moving average.

Similar Indicators / Formulas

Hull Moving Average (HMA)
Submitted by kaiji about 14 years ago
Beauty
Submitted by sbtc555 almost 11 years ago
Smoothed MA (SSMA)
Submitted by kelvinhand almost 11 years ago
Trend Scalping System
Submitted by esnataraj almost 14 years ago
TD DeMarker Plane
Submitted by extremist almost 13 years ago
Guppy GMMA with "derived" Indicator
Submitted by dalmas almost 14 years ago

Indicator / Formula

Copy & Paste Friendly
Price = ( H + L ) /2;
Threshold = 0.002;
Smooth = (Price + 2 * Ref( Price, -1 ) + 2 * Ref( Price, -2 ) + Ref(Price, -3 ) )/6;
Length = 39;
Value3 = 0.2;
AvgLength = 39;

for( Length = 39; Length >= 3; Length = Length - 2 )
{
   alpha = 2 / ( Length + 1 );
   Value1 = Median( Smooth, Length );
   Value2 = AMA( Smooth, alpha );
   Value3 = Nz( abs( Value1 - Value2 )/Value1 );
   AvgLength = IIf( Value3 > Threshold, Length, AvgLength );
}

alpha = 2 / (AvgLength + 1);
Filt = AMA( Smooth, alpha );

Plot( C, "Price", colorBlack, styleCandle );
Plot( Filt, "Filt", colorRed );

0 comments

Leave Comment

Please login here to leave a comment.

Back