Voss Predictive Filter (VPF)

Category: Indicators By: Nicolas Created: October 14, 2019, 12:20 PM
October 14, 2019, 12:20 PM
Indicators
1 Comment

The Voss Predictive Filter by John Ehlers is a new filter indicator that could help signal cyclical turning points in markets. As described by the author, the filter has a negative group delay and while an indicator based on it cannot actually see into the future, it may provide the trader with signals in advance of other indicators.

 

//PRC_Voss Predictive Filter (VPF) | indicator
//14.10.2019
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

// --- settings 
Period=20
Predict=3
Bandwidth=0.25
// --- end of settings 

if barindex>Period then
 Order = 3*Predict
 F1 = Cos(360 / Period)
 G1 = Cos(Bandwidth*360 / Period)
 S1 = 1 / G1 - Sqrt( 1 / (G1*G1) - 1)

 //Band Limit the input data with a wide band BandPass Filter
 Filt = .5*(1 - S1)*(Close - Close[2]) + F1*(1 + S1)*Filt[1] - S1*Filt[2]
 If barindex <= 5 Then
  Filt = 0
 endif
 //Compute Voss predictor
 SumC = 0
 For count = 0 to Order - 1 do
  SumC = SumC + ((count + 1) / Order)*Voss[Order - count]
 next

 Voss = ((3 + Order) / 2)*Filt - SumC
endif

return Filt coloured(255,0,0),Voss coloured(30,144,255)

 

Download
Filename: PRC_Voss-Predictive-Filter-VPF.itf
Downloads: 405
Nicolas Master
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

Logo Logo
Loading...