NexusFi: Find Your Edge


Home Menu

 





anaSuperTrend vs. anaSuperTrendM11


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 28 posts (129 thanks)
    2. looks_two birdoggg with 10 posts (1 thanks)
    3. looks_3 Big Mike with 6 posts (8 thanks)
    4. looks_4 marker with 5 posts (10 thanks)
      Best Posters
    1. looks_one Fat Tails with 4.6 thanks per post
    2. looks_two marker with 2 thanks per post
    3. looks_3 bullsandthebears with 1.5 thanks per post
    4. looks_4 Big Mike with 1.3 thanks per post
    1. trending_up 33,194 views
    2. thumb_up 156 thanks given
    3. group 27 followers
    1. forum 73 posts
    2. attach_file 9 attachments




 
Search this Thread

anaSuperTrend vs. anaSuperTrendM11

  #1 (permalink)
 marker 
Las Vegas, NV
 
Experience: None
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL
Posts: 102 since Jun 2010
Thanks Given: 115
Thanks Received: 105

Playing around with anaSuperTrend and some SuperTrend strategies here in this forum, I have noticed that some of these anaSuperTrend versions are a bit different in the plotting and arrow trend signaling.

Would someone be able to tell me the differences between the anaSuperTrend and the anaSuperTrendM11 in reference to the calculations behind it?

I know that the M11 version allows user to change the stop-line and stop dots appearances, but when using the same parameter settings, as you can see from the attached pic, the stop-lines are plotted differently and thereby on a few instances, there can be a arrow trend change on one version, while the other version stays with the current trend.

Much appreciated for any insight on this...

Attached Thumbnails
Click image for larger version

Name:	anaSuperTrends_001.png
Views:	1519
Size:	119.0 KB
ID:	54207  
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
bluemele's Avatar
 bluemele 
Honolulu, Hawaii
 
Experience: Intermediate
Platform: NinjaTrader
Broker: ATC/TT, AMP/Zen-Fire, AMP/CQG
Trading: TF
Posts: 2,543 since Jun 2010
Thanks Given: 3,803
Thanks Received: 2,842


I think only @Fat Tails can answer that one.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (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


marker View Post
Playing around with anaSuperTrend and some SuperTrend strategies here in this forum, I have noticed that some of these anaSuperTrend versions are a bit different in the plotting and arrow trend signaling.

Would someone be able to tell me the differences between the anaSuperTrend and the anaSuperTrendM11 in reference to the calculations behind it?

I know that the M11 version allows user to change the stop-line and stop dots appearances, but when using the same parameter settings, as you can see from the attached pic, the stop-lines are plotted differently and thereby on a few instances, there can be a arrow trend change on one version, while the other version stays with the current trend.

Much appreciated for any insight on this...

Your observations are exact. Let me try to explain the differences.


Technical Analysis was originally performed by chartists on daily charts


Most of the indicators were not designed for day trading, but were originally applied to a printed chart, once the market had closed. So the chartist would perform the calculation of the formula once and write down the result. The best book that I have seen to show how this was done is Welles Wilder's "New Concepts in Technical Trading Systems".

Why it is ridiculous to use these indicators on tick-by-tick real-time data

Let us take the example of a Bollinger Band. It uses the standard deviation over a lookback period, which is a relatively complex calculation. For these calculations it includes the current value of price. So with every incoming tick you need to recalculate the standard deviation. What you get in return is a band that moves away from price, when price approaches it. So if you check price against that Bollinger Band, you essentially get a feedback loop with negative feedback.

Conclusion: Recalculating Bollinger Bands tick by tick causes a high CPU load which creates negative feedback. In short this is mathematical nonsense.

How to implement indicators correctly?

For use with real-time, you want a low impact indicator, which serves the purpose. For the Bollinger Bands it would be good enough to replace the standard deviation StdDev(20)[0] with the StdDev(19)[1] and calculate this only once when the first tick of the new bar is detected. The chart below shows the original Bollinger Band (orange) and the modified Bollinger Band (red). Teh difference is that during a news release the red bands will not trigger a few thousand calculations of the standard deviation and freeze your trading software.

The worst coding example that I have seen is the VWAP, as is calculates the standard deviation back to the beginning of the session with each incoming tick. Freeze guranteed, if you use it CalculateOnBarClose = false.

Now what about the SuperTrend M11?

The SuperTrend uses the median and the average true range to calculate the stop bands. As seen for the Bollinger Bands it is neither necessary nor helpful to include the current value of price to calculate the bands. Therefore the stop value is calculated from the median of the last period anaMedian(MedianPeriod)[1] and the true range of the last period ATR(ATRPeriod)[1]. This makes it robust and possible to use it in CalculateOnBarClose = false mode,which is necessary if you want to get the alerts in real-time. The SuperTrend M1 only had the ATR calculated one bar back, but still calculated the median with each incoming tick.

So it is just a starting point to replace all the nonsense indicators with indicators that are adapted for use with real-time data. The difference between the two indicators is negligible. What you have to do though, if you compare the SuperTrend M11 to the SuperTrend M1: You need to reduce the Median period of the Supertrend M11 by 1 to come as close as possible.

Attached Thumbnails
Click image for larger version

Name:	ES 12-11 (15 Min)  04_11_2011.jpg
Views:	1260
Size:	95.5 KB
ID:	54218  
Reply With Quote
  #5 (permalink)
 marker 
Las Vegas, NV
 
Experience: None
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL
Posts: 102 since Jun 2010
Thanks Given: 115
Thanks Received: 105

FatTails,

WOW, Outstanding answer.
Thank you kindly for your time in clarifying how these indicators are calculated and the HISTORY behind.

This is another example that once we are thoroughly educated in a particular "tool," we can make an educated and mathematical decision on whether it would beneficial to our "Lives.".

Again, BIG THANKS Fat Tails!



Fat Tails View Post
Your observations are exact. Let me try to explain the differences.


Technical Analysis was originally performed by chartists on daily charts


Most of the indicators were not designed for day trading, but were originally applied to a printed chart, once the market had closed. So the chartist would perform the calculation of the formula once and write down the result. The best book that I have seen to show how this was done is Welles Wilder's "New Concepts in Technical Trading Systems".

Why it is ridiculous to use these indicators on tick-by-tick real-time data

Let us take the example of a Bollinger Band. It uses the standard deviation over a lookback period, which is a relatively complex calculation. For these calculations it includes the current value of price. So with every incoming tick you need to recalculate the standard deviation. What you get in return is a band that moves away from price, when price approaches it. So if you check price against that Bollinger Band, you essentially get a feedback loop with negative feedback.

Conclusion: Recalculating Bollinger Bands tick by tick causes a high CPU load which creates negative feedback. In short this is mathematical nonsense.

How to implement indicators correctly?

For use with real-time, you want a low impact indicator, which serves the purpose. For the Bollinger Bands it would be good enough to replace the standard deviation StdDev(20)[0] with the StdDev(19)[1] and calculate this only once when the first tick of the new bar is detected. The chart below shows the original Bollinger Band (orange) and the modified Bollinger Band (red). Teh difference is that during a news release the red bands will not trigger a few thousand calculations of the standard deviation and freeze your trading software.

The worst coding example that I have seen is the VWAP, as is calculates the standard deviation back to the beginning of the session with each incoming tick. Freeze guranteed, if you use it CalculateOnBarClose = false.

Now what about the SuperTrend M11?

The SuperTrend uses the median and the average true range to calculate the stop bands. As seen for the Bollinger Bands it is neither necessary nor helpful to include the current value of price to calculate the bands. Therefore the stop value is calculated from the median of the last period anaMedian(MedianPeriod)[1] and the true range of the last period ATR(ATRPeriod)[1]. This makes it robust and possible to use it in CalculateOnBarClose = false mode,which is necessary if you want to get the alerts in real-time. The SuperTrend M1 only had the ATR calculated one bar back, but still calculated the median with each incoming tick.

So it is just a starting point to replace all the nonsense indicators with indicators that are adapted for use with real-time data. The difference between the two indicators is negligible. What you have to do though, if you compare the SuperTrend M11 to the SuperTrend M1: You need to reduce the Median period of the Supertrend M11 by 1 to come as close as possible.


Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 
Colin F's Avatar
 Colin F 
Romania, Targu-Mures
 
Experience: Beginner
Platform: Ninja Trader
Trading: 6E, M6E
Posts: 73 since Dec 2010
Thanks Given: 56
Thanks Received: 48

I have few questions for you guys, especially for @Fat Tails, because he is the creator of the indicator.

I currently use (actually just discovered it this morning) anaSuperTrendMod, where could i find anaSuperTrendM11 ?
What is the meaning of the gray and red line from anaSuperTrendMod, and how should they be used?
Is there a possibility to disable the plot for them?

Thank you...

Colin
Reply With Quote
  #7 (permalink)
 
dakine's Avatar
 dakine 
Volcano, HI
 
Experience: None
Platform: Ninja
Broker: AMP/CQG
Trading: Futura2000
Posts: 200 since Dec 2009
Thanks Given: 389
Thanks Received: 166

@Fat Tails,

I found the answers.

Thanks.

Reply With Quote
  #8 (permalink)
 marker 
Las Vegas, NV
 
Experience: None
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL
Posts: 102 since Jun 2010
Thanks Given: 115
Thanks Received: 105

Fat Tails already answered in the previous few posts


dakine View Post
@ Fat Tails,

I am a little confused. I am using anaSuperTrendM1 from the downloads section. Does anaSuperTrendM11 differ from this version? If they differ which is the latest and greatest?

Thanks


Started this thread Reply With Quote
Thanked by:
  #9 (permalink)
 
dakine's Avatar
 dakine 
Volcano, HI
 
Experience: None
Platform: Ninja
Broker: AMP/CQG
Trading: Futura2000
Posts: 200 since Dec 2009
Thanks Given: 389
Thanks Received: 166

lol been a long day thanks.

Thanks

Reply With Quote
Thanked by:
  #10 (permalink)
 marker 
Las Vegas, NV
 
Experience: None
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL
Posts: 102 since Jun 2010
Thanks Given: 115
Thanks Received: 105


Here ya go:





dakine View Post
lol been a long day thanks. now i just need to find out where to get m11.

Thanks


Started this thread Reply With Quote
Thanked by:




Last Updated on December 8, 2014


© 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