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,243 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

  #41 (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,103


bullsandthebears View Post
"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"."

I have Welles Wilder's "New Concepts in Technical Trading Systems in PDF that i posted, its from 1978, is this the year you mention? is there a newer version, yet the term didnt make hem like they used to may be the case.

THANK YOU FOR ALL YOUR INSIGHT !

@bullsandthebears: You are absolutely right. I love that book, because it explains a lot. Worth reading. I think the 1978 edition is the last one.

And you made an important point. The chartist would only make the calculation after the day had closed. Thus the calculation would be performed once and only for complete periods.

With a modern charting program often the indicator value is plotted prior to the completion of the bar, and this can produce bizarre results.

Imagine a 3-period ATR. If you look at this indicator after the first of the new bar and include that bar for the calculation of the indicator value, then the true range of the last bar is zero, and the average true range will drop by 33% from the previous bar. This will happen again with every new bar, so the indicator will temporarily plot like below its value, until the bar reaches completion.

There are many indicators that cannot be used when the last unstable bar is included prior to its completion.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Quant vue
Trading Reviews and Vendors
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
75 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
16 thanks
  #42 (permalink)
 
bullsandthebears's Avatar
 bullsandthebears 
boston, ma / usa
 
Experience: Intermediate
Platform: ninja , metastock, multicharts, TDA, tradestation
Broker: Tradestation, Esignal, OptionsExpress, MBTrading, Ameritrade
Trading: spy,sector spyders
Posts: 67 since Jul 2012
Thanks Given: 9
Thanks Received: 14

how i love brackets [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]


Not a vendor, just a trader. I do not sell anything. Current studies involve EasyLanguage, Money Management and Technical Analysis. Do Enjoy: Fibs, S / R's , Eliotts, Cycles, Trends , Skews. Not Enjoy: fundamentals, Main St Media . It's all about keeping your emotions out of trading and work a system. Appreciate all insight as will be returned. Scotty B.
Visit my NexusFi Trade Journal Reply With Quote
  #43 (permalink)
 birdoggg 
Charlotte, NC/USA
 
Experience: Advanced
Platform: NT, TOS
Broker: Mirus/ZF, AMP/CQG, TOS, MBT
Trading: Futures, Stocks, Bonds, Forex
Posts: 37 since May 2011
Thanks Given: 56
Thanks Received: 9


Hi Fat Tails:

When a backtest or live run of SuperTrend M11 or U11 I notice a entry is made Long or Short a bit before the actual arrow plots on the chart. How can I make the arrow plot at the same time the entry is made?



Greg

Reply With Quote
  #44 (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,103


birdoggg View Post
Hi Fat Tails:

When a backtest or live run of SuperTrend M11 or U11 I notice a entry is made Long or Short a bit before the actual arrow plots on the chart. How can I make the arrow plot at the same time the entry is made?



Greg

@birdoggg: Your question is about an interesting little detail. Actually to answer the question I have to make a distinction between two cases.

(1) SuperTrend reverses after the bar close

This is the default setting of the indicator. The SuperTrend waits for a bar close beyond the stop line. Once the bar closes the position may be reversed with the first tick (open) of the next bar. In this case the signal bar belongs to the old trend and the entry bar is the next bar after the signal bar.

This is the also the classical way the SuperTrend is used. So far the color logic and arrows were adapted to this case. The case is shown in the chart below.

Although I will not change the visual appearance in this case, I have made a minor change to the indicator. The arrows will now be plotted 1 bar ahead at the close of the signal bar.





(2) SuperTrend reverses intra-bar when the stop line is taken out

This is the way the indicator behaves, when Reverse Intrabar is set to "true". This is a more exotic application of the SuperTrend. Even in this case I want the stop line to stay in place, because otherwise it is impossible to see where it has been broken. I think that the stop line should be left in place for the signal bar.

However, if the trend change is triggered intra-bar, the entry bar and the signal bar are identical - with the exception of the rare case that the trend change is signalled with the last tick of the bar. Therefore I agree with you that both the paint bars and the arrow should be shifted one bar forward.

I have now made the modifications to the indicator SuperTrendM11 and posted it in the downloads. The result is shown in the chart below.





However, I have not changed the main plots and the BoolSeries that detects the trend and which can be accessed via an automated strategy. There will be no unwanted side effects, if you update the indicator and have used it for an automated strategy before. The updated indicator can be found here. Feedback welcome. I will also update the SuperTrendU11 once it has been confirmed that the recent change works as expected.


Reply With Quote
  #45 (permalink)
 birdoggg 
Charlotte, NC/USA
 
Experience: Advanced
Platform: NT, TOS
Broker: Mirus/ZF, AMP/CQG, TOS, MBT
Trading: Futures, Stocks, Bonds, Forex
Posts: 37 since May 2011
Thanks Given: 56
Thanks Received: 9

Hey Fat Tails...cool...ok...would it be too much trouble to go ahead and update SuperTrendU11 as well? I have it on a strategy already I created and will be able to quickly get back to you on comments afterward with that one. I don't have a functional strategy done for the M11 one...just wondering...excellent answer and feedback to my question...thank you!!!

Reply With Quote
  #46 (permalink)
 birdoggg 
Charlotte, NC/USA
 
Experience: Advanced
Platform: NT, TOS
Broker: Mirus/ZF, AMP/CQG, TOS, MBT
Trading: Futures, Stocks, Bonds, Forex
Posts: 37 since May 2011
Thanks Given: 56
Thanks Received: 9

Hi Fat Tails...by the way (in addition to my last post)...I am having a error when I save the workspace that ...U11 has a serialization error. How can I fix?

Reply With Quote
  #47 (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,103


birdoggg View Post
Hi Fat Tails...by the way (in addition to my last post)...I am having a error when I save the workspace that ...U11 has a serialization error. How can I fix?

@birdoggg: Shutdown & restart NinjaTrader. Then build the chart again. The serialization error is probably not caused by the indicator.

Reply With Quote
  #48 (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,103

Here comes an update for both the SuperTrendM11 and SuperTrendU11.

The logic for the BoolSeries which can be accessed by the strategy has not been changed, the update will therefore not lead to a bad surprise.


Reverse intra-bar = false: This is the default setting for the SuperTrend. With this setting the SuperTrend only changes the direction of the trend, when the stopline is taken out by a close beyond that line. This is what I have changed:

-> with setting COBC = true, the arrow will now be plotted for the entry bar when the signal bar has closed


Reverse intra-bar = true: In this case the SuperTrend changes direction as soon as price has broken the stop line intra-bar. The changes are:

-> when paint bars are activated, the signal and entry bar will now carry the color of the new trned
-> the arrow will now be plotted for the bar that breaks the trend, as the reversal is detected intra-bar


In all cases I have maintained the decision to show the stopline that is broken. This is different from the TSSuperTrend, where the new stop is already displayed for the signal bar.

The indicators can be found here:





Reply With Quote
  #49 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,461 since Jun 2009
Thanks Given: 33,235
Thanks Received: 101,657

Notifications sent.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #50 (permalink)
 birdoggg 
Charlotte, NC/USA
 
Experience: Advanced
Platform: NT, TOS
Broker: Mirus/ZF, AMP/CQG, TOS, MBT
Trading: Futures, Stocks, Bonds, Forex
Posts: 37 since May 2011
Thanks Given: 56
Thanks Received: 9


Hey Fat Tails...could you give some best practices when updating your indicators. I went to update and received a lot of errors and had to re-install NT (probably my fault and not your indicators though)...smile...

The initial installation went perfectly...it was when I went to install the updated version were there was issues...

Thanks FT...

Greg


Fat Tails View Post
Here comes an update for both the SuperTrendM11 and SuperTrendU11.

The logic for the BoolSeries which can be accessed by the strategy has not been changed, the update will therefore not lead to a bad surprise.


Reverse intra-bar = false: This is the default setting for the SuperTrend. With this setting the SuperTrend only changes the direction of the trend, when the stopline is taken out by a close beyond that line. This is what I have changed:

-> with setting COBC = true, the arrow will now be plotted for the entry bar when the signal bar has closed


Reverse intra-bar = true: In this case the SuperTrend changes direction as soon as price has broken the stop line intra-bar. The changes are:

-> when paint bars are activated, the signal and entry bar will now carry the color of the new trned
-> the arrow will now be plotted for the bar that breaks the trend, as the reversal is detected intra-bar


In all cases I have maintained the decision to show the stopline that is broken. This is different from the TSSuperTrend, where the new stop is already displayed for the signal bar.

The indicators can be found here:






Reply With Quote




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