anaSuperTrend vs. anaSuperTrendM11 - NinjaTrader Programming | futures io social day trading
futures io futures trading


anaSuperTrend vs. anaSuperTrendM11
Updated: Views / Replies:19,929 / 73
Created: by marker Attachments:9

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 9  
 
Thread Tools Search this Thread
 

anaSuperTrend vs. anaSuperTrendM11

  #41 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


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
 
  #42 (permalink)
Elite Member
boston, ma / usa
 
Futures Experience: Intermediate
Platform: ninja , metastock, multicharts, TDA, tradestation
Broker/Data: Tradestation, Esignal, OptionsExpress, MBTrading, Ameritrade
Favorite Futures: spy,sector spyders
 
bullsandthebears's Avatar
 
Posts: 67 since Jul 2012
Thanks: 9 given, 12 received

thank the great maker of brackets

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.
Reply With Quote
 
  #43 (permalink)
Elite Member
Charlotte, NC/USA
 
Futures Experience: Advanced
Platform: NT, TOS
Broker/Data: Mirus/ZF, AMP/CQG, TOS, MBT
Favorite Futures: Futures, Stocks, Bonds, Forex
 
Posts: 36 since May 2011
Thanks: 56 given, 9 received

Plotting Arrow on SuperTrend


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)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


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.


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



(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.


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



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.

https://futures.io/download/ninjatrader-7/indicators/841-download.html?view

Reply With Quote
The following 6 users say Thank You to Fat Tails for this post:
 
  #45 (permalink)
Elite Member
Charlotte, NC/USA
 
Futures Experience: Advanced
Platform: NT, TOS
Broker/Data: Mirus/ZF, AMP/CQG, TOS, MBT
Favorite Futures: Futures, Stocks, Bonds, Forex
 
Posts: 36 since May 2011
Thanks: 56 given, 9 received

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)
Elite Member
Charlotte, NC/USA
 
Futures Experience: Advanced
Platform: NT, TOS
Broker/Data: Mirus/ZF, AMP/CQG, TOS, MBT
Favorite Futures: Futures, Stocks, Bonds, Forex
 
Posts: 36 since May 2011
Thanks: 56 given, 9 received

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)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


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)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

Update SuperTrendM11 and SuperTrendU11

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:

https://futures.io/download/ninjatrader-7/indicators/841-download.html?view
https://futures.io/download/ninjatrader-7/indicators/1207-download.html?view

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following 4 users say Thank You to Fat Tails for this post:
 
  #49 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received

Notifications sent.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
  #50 (permalink)
Elite Member
Charlotte, NC/USA
 
Futures Experience: Advanced
Platform: NT, TOS
Broker/Data: Mirus/ZF, AMP/CQG, TOS, MBT
Favorite Futures: Futures, Stocks, Bonds, Forex
 
Posts: 36 since May 2011
Thanks: 56 given, 9 received


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:

https://futures.io/download/ninjatrader-7/indicators/841-download.html?view
https://futures.io/download/ninjatrader-7/indicators/1207-download.html?view

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Reply With Quote

Reply



futures io > > > > > anaSuperTrend vs. anaSuperTrendM11

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     


All times are GMT -4. The time now is 11:52 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.14 seconds with 19 queries on phoenix via your IP 54.226.34.209