Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Super Trend For Ninja Trader Needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by Elliott Wave View Post
    I added a fourth algorithm:

    - 'Fixed Percent' based on Sylvain Vervoort's 'Using Initial Stop Methods' May 2009 S&C article.

    I also added additional moving average types:

    -T3, ADVMA, ZeroLagEMA, ZeroLagTEMA, EhlersFilter and JurikJMA (you need the Jurik indicators for it to work).

    I also changed the plot style from Hash back to a line like every previous incarnation ( I found the hash hard to read).

    Thanks Elliott Wave, much appreciated

    Comment


      Is there anyone using this indicator on the Dow E-mini (YM) for daytrading with some success? If so, what time frame and settings?

      Comment


        Hi Guys,

        Firstly awesome work on this indicator so far, it is genuinely apprecaited.

        A couple of quick questions;

        Does this incorporate the work of the adaptive supertrend indicator located in the other thread? If not are there advantages / disadvantages of either?

        Can anyone suggest optimal settings for FOREX on a 240 or 60 min chart?

        Can you suggest a good indicator to measure the likelyhood of a major move in order to avoid some of the whipsaws that you get.

        Thanks again to everyone that has contributed,

        Tim

        Comment


          why so slow?

          why is the newest TSSuperTrend so slow to just run through 18 possible combinations on one day, one minute chart in strategy analyzer (took 30 minutes)?

          is the new version not written for use in strategies? any suggestions for speeding it up?

          Comment


            Originally posted by jcash View Post
            why is the newest TSSuperTrend so slow to just run through 18 possible combinations on one day, one minute chart in strategy analyzer (took 30 minutes)?

            is the new version not written for use in strategies? any suggestions for speeding it up?
            I am aware of that and working... Will post updated version soon...

            Comment


              Originally posted by roonius View Post
              I am aware of that and working... Will post updated version soon...
              excellent. thanks.

              Comment


                The updated version 2.1. Should be faster in strategies...
                Attached Files

                Comment


                  Originally posted by jcash View Post
                  why is the newest TSSuperTrend so slow to just run through 18 possible combinations on one day, one minute chart in strategy analyzer (took 30 minutes)?

                  is the new version not written for use in strategies? any suggestions for speeding it up?
                  would it be possible to publish a "strategy" version to run in strategy analyzer / to backtest

                  (sorry about my worse English)

                  Comment


                    Hello there,

                    Thank you in advance for the work about this indicator. I a problem about using it in a simple strategy.
                    For example in a situation where we have daily data and the strategy go long only How I understand if I'm in an UpTrend or DownTrend.

                    Thank you in advance and I hope I can be helpfull to other user

                    bye

                    Comment


                      Strategy problem solved

                      I created a data series "bsSignal" to add a +1 when you're in an Uptrend and -1 when you're in a Downtrend. So now all you need to do is code your Strategy using +1 / -1 as a condition in the Strategy Wizard. No need for programing!!

                      Good Luck
                      Attached Files
                      Last edited by velocity; 06-03-2009, 07:23 AM.

                      Comment


                        Thanks a lot roonius and velocity

                        Comment


                          Thanks velocity, could you please reattch this as a zip file? Thanks!
                          BertrandNinjaTrader Customer Service

                          Comment


                            Originally posted by velocity View Post
                            I created a data series "bsSignal" to add a +1 when you're in an Uptrend and -1 when you're in a Downtrend. So now all you need to do is code your Strategy using +1 / -1 as a condition in the Strategy Wizard. No need for programing!!

                            Good Luck
                            Velocity,

                            Thanks.


                            You don't need to add any additional "signal"
                            TSSupertrend already has a boolseries:

                            Uptrend:
                            Code:
                             
                            if(TSSuperTrend(Parameters).Trend[0])
                            {
                             //we are in uptrend
                            }
                            Downtrend:
                            Code:
                             
                            if(!TSSuperTrend(Parameters).Trend[0])
                            {
                             //we are in downtrend
                            }
                            Fresh cross up:

                            Code:
                             
                            if(TSSuperTrend(Parameters).Trend[0] && !SuperTrend(Parameters)[1])
                            {
                             //Trend just changed direction up
                            }
                            Fresh cross down:

                            Code:
                             
                            if(!TSSuperTrend(Parameters).Trend[0] && SuperTrend(Parameters)[1])
                            {
                             //Trend just changed direction down
                            }

                            Comment


                              thank you for your kind reply.

                              bye

                              Comment


                                Regarding the indicator above I have developed a simple strategy where the code, as indicated previously, is the following :

                                if (Position.MarketPosition == MarketPosition.Flat && TSSuperTrend(Periodo, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.SMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Trend[0])
                                {

                                EnterLong(DefaultQuantity, "");
                                }
                                else if(Position.MarketPosition == MarketPosition.Long && !TSSuperTrend(Periodo, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.SMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Trend[0] && TSSuperTrend(Periodo, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.SMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Trend[1])
                                {

                                ExitLong();
                                }


                                but as you can see in the attached file it doesn't work fine.

                                The trend start at a position where the boolean variable is non true.

                                Is it correct or I'm wrong ?

                                I think that, as in the code above, the Order Long start at the beginning of the trend, after the first bar of a trend.

                                Thank you in advance

                                bye.
                                Attached Files

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by jxs_xrj, 01-12-2020, 09:49 AM
                                5 responses
                                3,290 views
                                1 like
                                Last Post jgualdronc  
                                Started by Touch-Ups, Today, 10:36 AM
                                0 responses
                                6 views
                                0 likes
                                Last Post Touch-Ups  
                                Started by geddyisodin, 04-25-2024, 05:20 AM
                                8 responses
                                61 views
                                0 likes
                                Last Post NinjaTrader_Gaby  
                                Started by Option Whisperer, Today, 09:55 AM
                                0 responses
                                8 views
                                0 likes
                                Last Post Option Whisperer  
                                Started by halgo_boulder, 04-20-2024, 08:44 AM
                                2 responses
                                24 views
                                0 likes
                                Last Post halgo_boulder  
                                Working...
                                X