NexusFi: Find Your Edge


Home Menu

 





Webinar: John Ehlers on Indicators for Effective Trading Strategies


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one Big Mike with 16 posts (26 thanks)
    2. looks_two Fat Tails with 16 posts (101 thanks)
    3. looks_3 krzysiaczek99 with 5 posts (0 thanks)
    4. looks_4 vegasfoster with 4 posts (3 thanks)
      Best Posters
    1. looks_one Fat Tails with 6.3 thanks per post
    2. looks_two Big Mike with 1.6 thanks per post
    3. looks_3 vegasfoster with 0.8 thanks per post
    4. looks_4 RoboTrade with 0.7 thanks per post
    1. trending_up 81,029 views
    2. thumb_up 140 thanks given
    3. group 33 followers
    1. forum 65 posts
    2. attach_file 14 attachments




 
Search this Thread

Webinar: John Ehlers on Indicators for Effective Trading Strategies

  #61 (permalink)
 
ElChacal's Avatar
 ElChacal 
Houston, TX
 
Experience: Intermediate
Platform: NinjaTrader TWS Barchart
Broker: IB / IB
Trading: SPY, QQQ
Posts: 411 since Nov 2014
Thanks Given: 471
Thanks Received: 277

After watching Ehlers presentation one question came to mind:

1) Why would you extract the high frequencies to filter them afterwards?

2) Wouldn't it be easier to just apply the SuperSmoother directly to price and use it as input for Stochastics (or any other indicator) ?

I don't know if anyone has already tested and made a comparison between these two options. It is the underlying concept that I don't understand yet. Maybe someone with Signal Processing background has a good insight.


Thanks!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
Battlestations: Show us your trading desks!
43 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #62 (permalink)
Wilkinson
Newcastle, United Kingdom
 
Posts: 1 since Jan 2015
Thanks Given: 5
Thanks Received: 1


disco391 View Post
Code for various platforms are in the Traders Tip section.
Specifically the Amibroker code for SuperSmoother function can be found here:
John

Amibroker 5.95 introduced the IIR (Impulse Response Filter), which should provide better performance than looping.
I am a rookie here so I can't provide a link to its readme -- too bad.

Please find the two functions ported.

Thanks,
Gabor



Version(5.95);

PI = 3.1415926;
SQ2 = sqrt( 2 );

function SuperSmoother( array, periods )
{

c1 = SQ2 * PI / periods;
c2 = exp ( -c1 );
a1 = 2 * c2 * cos( c1 );
a2 = -c2^2;
b0 = (1 - a1 - a2)/2;
b1 = b0;

return IIR( Nz( array ), b0, a1, b1, a2 );
}

function HighpassFilter( array, periods )
{
alpha1 = ( cos( SQ2 * PI / periods ) + sin ( SQ2 * PI / periods ) - 1 ) / cos( SQ2 * PI / periods );

C1 = ( 1 - alpha1 / 2 ) ^ 2;
b0 = C1;
b1 = C1 * -2;
b2 = C1;
a1 = 2 * ( 1 - alpha1 );
a2 = - ( ( 1 - alpha1 ) ^ 2 );

return IIR( Nz( array ), b0, a1, b1, a2, b2 );
}

Reply With Quote
The following user says Thank You to Wilkinson for this post:
  #63 (permalink)
krzysiaczek99
stockholm sweden
 
Posts: 9 since Sep 2012
Thanks Given: 1
Thanks Received: 2



Fat Tails View Post
@krzysiaczek99: If you tell me that a pair of scissors is superior to a pencil, I would certainly respond that my preference depends on the case.

The SMA is a finite response filter which is not really smooth. As all finite response filters it is slow to digest rapid moves or gaps.

The Supersmoother is an infinite response filter, which is generally faster to react and considerably smoother compared to the SMA.

I do not agree that the SuperSmoother has a similar behavior as the SMA, see chart below:


Sorry for 3y delayed response, I haven't notice that anyone response. So on your picture you compare SMA(l/2) and SS(l) because its the formula to calculate period parameter between them ?? (so eg SMA(5) and SS(10) )

Krzysztof

Reply With Quote
  #64 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


krzysiaczek99 View Post
Sorry for 3y delayed response, I haven't notice that anyone response. So on your picture you compare SMA(l/2) and SS(l) because its the formula to calculate period parameter between them ?? (so eg SMA(5) and SS(10) )

Krzysztof

3 years later. LOL.

The chart compares a SMA(20) to a 3-pole SuperSmoother(20).


However, the bar period has no meaning for many filters.


In order to find comparable bar periods you would need to calculate the lag of the SuperSmoother and compare it to the SMA.


This has been done for SMA and EMA.

Originally, Wilder's (exponential) average has been used with a smoothing constant k=1/N.

However, Wilder's average(N) is much slower than a SMA(N).

Therefore Jack Hutson suggested to use the formula k = 2/(N+1) instead of k = 1/N. (see article in one of the first issues of Stocks & Commodities).

With the introduction of the smoothing constant k = 2/(N+1) an EMA(N) had now a comparable lag to a SMA(N). The EMA is calibrated against the SMA.


This has not been done for the SuperSmoother. But the picture shows that the SS(20) has both a smaller lag and superior smoothing when compared to the SMA(20).

Reply With Quote
  #65 (permalink)
krzysiaczek99
stockholm sweden
 
Posts: 9 since Sep 2012
Thanks Given: 1
Thanks Received: 2

Hi,

I think it just the best to evaluate its performance in trading systems as according to his presentation it should
clean data from aliasing noise and spectral dilation so after denoising SNR ratio should be higher and data much
predictable. Unfortunately its opposite.... more info here

3rd generation NN, deep learning, deep belief nets and Restricted Boltzmann Machines - Page 36

Krzysztof

Reply With Quote
  #66 (permalink)
krzysiaczek99
stockholm sweden
 
Posts: 9 since Sep 2012
Thanks Given: 1
Thanks Received: 2

and some more comparative analysis of SMA vs Ehler supersmoother

3rd generation NN, deep learning, deep belief nets and Restricted Boltzmann Machines - Page 37

Reply With Quote





Last Updated on July 12, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts