Ehlers Roofing filter
Author: WEALTHPRO25
Creation Date: 2/29/2016 4:39 PM
profile picture

WEALTHPRO25

#1
dear sir,

i am following john ehlers strategy with the code below, i want to shift the phase of the chart of the roofing filter to the left, so the valley and peak of the chart comes 3 bars early, can you please help

CODE:
Please log in to see this code.
}
profile picture

Eugene

#2
You'll find an answer in the QuickRef, it's very simple:

What does >> do to a DataSeries?

Warning: shifting data to the left (from the future to the past) using the << operator is peeking into the future. The correct shifting should be performed in an opposite manner - to the right using the >> operation.

profile picture

07nioe

#3
Hi Eugene,

another question regarding the roofing filter: How do you change the periods of the two integrated filters (high-pass and supersmoother)? Could you release the code for it?

Thanks.

Best
07nioe
profile picture

Eugene

#4
Hi Niels,

The code for all TASCIndicators is open source. You can obtain it by logging in to the Wiki (your Wiki account is synonymous to the website's account) and clicking on the green "Attachments" button on this page:

Home - TASCIndicators

For example, Ehlers SuperSmoother is contained within SuperSmoother.cs.
profile picture

07nioe

#5
Great!

Thank you Eugene!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).