+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Ehlers Nonlinear Filter

Ehlers Nonlinear Filter in Amibroker is a filter that adjusts its sensitivity to market volatility. Utilizing the Amibroker data feed, this filter helps traders reduce noise in price data, enabling clearer trend analysis.

/_SECTION_BEGIN("Ehlers Nonlinear Filter");
//------------------------------------------------------------------------------

//
//  Taken from TASC's April 2001 Issue.
//
//------------------------------------------------------------------------------

Price = (H+L)/2;
MomLength = 15;

PriceMomSum = 0;
FiveMomSum = 0;

FiveMom = abs(Price - Ref(Price, -5));
PriceMom = Price * FiveMom;
for (i=0; i < MomLength; i++) {
	PriceMomSum = PriceMomSum + Ref(PriceMom, -i);
	FiveMomSum = FiveMomSum + Ref(FiveMom, -i);
}
NLEF = PriceMomSum / FiveMomSum;

Plot(Close, "Close", colorBlack, styleLine);
Plot(NLEF, "NonLinear Ehlers Filter", IIf(Close>NLEF, colorGreen, colorRed), styleLine);
_SECTION_END();

Open chat
1
Hi, how can I help you?