Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
If you increase the period of a moving average, it becomes smoother and you increase the lag. If you decrease the period both smoothness and lag are reduced. For a SMA or an EMA the typical lag is about half the period.
There is always a trade-off between smoothness and lag-reduction. You cannot have both. If you set the period to 1, the lag is completely gone, but there is no smoothing.
Maybe you already figured out that the Filt line is wrong. Since it depends on previous values of Filt, you should use a loop.
i.e.
for ( i = 2; i < BarCount; i++ )
Filt[i] = ( c1 * ( arr[i] + arr[i - 1] ) / 2 ) + c2 * Filt[i - 1] + c3 * Filt[i - 2];
There is also the article in January 2014 Technical Analysis of STOCKS & COMMODITIES
"Predictive And Successful Indicators" by John F. Ehlers, Ph.D.
Code for various platforms are in the Traders Tip section.
Specifically the Amibroker code for SuperSmoother function can be found here: TRADERS TIPS - January 2014
First, thanks for such a nice compilation if indicators based on John's work.
In the download section you specify that some or most of these were originally uploaded by Piersh.
Were these easylanguage by any chance?
I would like to know if there are versions of these for TradeStation/Multicharts.
John Ehlers has originally coded is indicators for TradeStation. It should therefore easy to find them somewhere. The collection by @piersh was coded for NT 6.5. I have just made a few modifications to allow to use them with NT7. So you may not consider me being the author of that package.
The TradeStation code for many indicators is also printend in John Ehlers' books, and some of them are available on his website.