Nicolas

Super bandpass filter - John Ehlers

Category: Indicators By: Nicolas Created: July 17, 2016, 7:41 PM
July 17, 2016, 7:41 PM
Indicators
4 Comments
Super bandpass filter - John Ehlers

Here is the newest indicator by John Ehlers described in the new traders’tips of July 2016, like his other indicators this one is also a nearly-zero lag filter which is another attempt to filter out noises from high and low frequencies of market data.

John Ehlers describe the trading rules of this new indicator as this:

  • Buy on the filter crossing above its -RMS line
  • Short on the filter crossing below its RMS line
  • Exit long when the filter either crosses below its RMS or crosses below -RMS (which signifies a false entry signal)
  • Cover short when the filter either crosses above its -RMS or crosses above RMS (which signifies a false entry signal)

 

// parameters
flen = 40 //fast length
slen = 60 //slow length

if barindex>slen then
 a1= 5/flen
 a2= 5/slen
 PB = (a1 - a2) * close + (a2*(1 - a1) - a1 * (1 - a2))* close[1] + ((1 - a1) + (1 - a2))*(PB[1])- (1 - a1)* (1 - a2)*(PB[2])
 RMSa = summation[50](PB*PB)
 RMSplus = sqrt(RMSa/50)
 RMSminus = -RMSplus
endif

RETURN PB as "Pass band filter", RMSplus as "RMS+", RMSminus as "RMS-"

 

Download
Filename: PRC_Superbandpass_filter.itf
Downloads: 579
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Hans63
10 years ago
#

Well, I am a discretionary trader, so I don't trade all the signals given by a system or by indicators

All I can say is that this indicator give you good entry points.

 

Nicolas
10 years ago
#

...and that's clever, thanks again for your feed back and your sharing.

Hans63
10 years ago
#

For intraday purpose I tried to modify the parameters

Rules are different. It works like a stop and reverse

Long on the filter crossing above its RMS line. Stay Long until the filter is crossing below the lower line (band), then reverse the position from Long to Short

Short on the filter crossing below its RMS line. Stay Short until the filter is crossing above the higher line (band), then reverse the position from Short to Long

It works well on Germany 30 5 min

 

// parameters
flen = 20//fast length
slen = 30 //slow length

if barindex>slen then
a1= 5/flen
a2= 5/slen
PB = (a1 - a2) * close + (a2*(1 - a1) - a1 * (1 - a2))* close[1] + ((1 - a1) + (1 - a2))*(PB[1])- (1 - a1)* (1 - a2)*(PB[2])
RMSa = summation[25](PB*PB)
RMSplus = sqrt(RMSa/25)
RMSminus = -RMSplus
endif

RETURN PB as "Pass band filter", RMSplus as "RMS+", RMSminus as "RMS-"

 

Nicolas
10 years ago
#

Nice, thanks for sharing. How much profitability lookback do you have with this indicator modification? 

ProRealCode ProRealCode
Loading...