Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Super Trend For Ninja Trader Needed

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

    Supertrend Stratagy

    I am Trying to make a stratagy from supertrend and tried to copy and paste tortexal code but in the strategy wizard-view code it does not let me paste? I am new to the stratagy wizard and have attended the webinar, but trying to figure this out is way over my head. Could some of you lend me a hand?


    Cheers

    Comment


      You will not be able to modify the code generated by the Strategy Wizard unless you unlock the code. If you unlock the code you will not be able to go back to the Wizard.
      Josh P.NinjaTrader Customer Service

      Comment


        How would I go about entering the code that totexal submitted? I would like to see what this would look like in the stratagy wizard for my own education .


        Thanks

        PS Is there already a stratagy for this posted that I may have missed?

        Comment


          I'm not sure which code you exactly refer to, most likely you would need to this outside the wizard by custom programming in the NinjaScript editor.
          BertrandNinjaTrader Customer Service

          Comment


            Originally posted by NinjaTrader_Josh View Post
            The Wizard will only pick up plots. BoolSeries are not plots and as such are not picked up by the Wizard.
            Josh,

            Picking up Bools would be pretty nice.

            Comment


              Thank you for the suggestion. To access BoolSeries right now you have to custom program your strategy.
              Josh P.NinjaTrader Customer Service

              Comment


                Hi advanced programmers!

                I added the following line to get audio alert when buy or sell signal
                is generated but I got the compile errors. Could someone tell me how
                to fix the problem? Thanks in advance.

                if (CrossAbove(Close[0], DownTrend[1],1)) alert(); for buy
                if (CrossBelow(Close[0], UpTrend[1],1)) alert(); for sell

                Compiling error says

                The best overloaded method match for 'CrossAbove' has some invalid arguments.
                Argument "2": cannot convert from 'double' to 'IDataSeries'

                Comment


                  Originally posted by badasan View Post
                  Hi advanced programmers!

                  I added the following line to get audio alert when buy or sell signal
                  is generated but I got the compile errors. Could someone tell me how
                  to fix the problem? Thanks in advance.

                  if (CrossAbove(Close[0], DownTrend[1],1)) alert(); for buy
                  if (CrossBelow(Close[0], UpTrend[1],1)) alert(); for sell

                  Compiling error says

                  The best overloaded method match for 'CrossAbove' has some invalid arguments.
                  Argument "2": cannot convert from 'double' to 'IDataSeries'
                  if (CrossAbove(Close, DownTrend[1],1)) alert(); for buy
                  if (CrossBelow(Close, UpTrend[1],1)) alert(); for sell

                  Comment


                    Thank you very much roonius,

                    It now compiles fine. However, instead of making audio alert once
                    only when it crosses, it is continuously making audio alert. I have no idea
                    how to fix it. If not very difficult, it may be nice if you can add audio
                    alert option to the code. Thanks a lot.

                    Comment


                      Originally posted by badasan View Post
                      Thank you very much roonius,

                      It now compiles fine. However, instead of making audio alert once
                      only when it crosses, it is continuously making audio alert. I have no idea
                      how to fix it. If not very difficult, it may be nice if you can add audio
                      alert option to the code. Thanks a lot.
                      badasan,

                      what does your alert() method contain?

                      Comment


                        Dear Tamas,

                        I don't know what went wrong when I tested first time but it is working fine now. Code is as follows.

                        if (CrossAbove(Close, DownTrend[1],1))
                        Alert("myAlert1", NinjaTrader.Cbi.Priority.High, "buy triggered",
                        "Alert2.wav", 10, Color.Black, Color.Yellow);

                        else
                        if (CrossBelow(Close, UpTrend[1],1))
                        Alert("myAlert2", NinjaTrader.Cbi.Priority.High, "sell triggered",
                        "Alert2.wav", 10, Color.Black, Color.Yellow);

                        Comment


                          Originally posted by badasan View Post
                          I don't know what went wrong when I tested first time but it is working fine now.
                          good news

                          Comment


                            SuperTrendTrail_WithPerformanceBar

                            Hi,

                            I added a Performance Bar to SefStrat's SuperTrendTrail Strategy. I find it useful to see the results of a strategy in the main graph panel. Hope it works for you too.

                            Rperez
                            Attached Files

                            Comment


                              rperez.
                              You said, updated version from sefstrat's SuperTrend? But so far we had latest version from roonius on post#217. Please confirm if this is different SuperTrend?

                              Comment


                                Kumaresh11,

                                This is only an update on the "Strategy", not on the "Indicator".

                                rperez.-

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by lightsun47, Today, 03:51 PM
                                0 responses
                                5 views
                                0 likes
                                Last Post lightsun47  
                                Started by 00nevest, Today, 02:27 PM
                                1 response
                                10 views
                                0 likes
                                Last Post 00nevest  
                                Started by futtrader, 04-21-2024, 01:50 AM
                                4 responses
                                46 views
                                0 likes
                                Last Post futtrader  
                                Started by Option Whisperer, Today, 09:55 AM
                                1 response
                                14 views
                                0 likes
                                Last Post bltdavid  
                                Started by port119, Today, 02:43 PM
                                0 responses
                                10 views
                                0 likes
                                Last Post port119
                                by port119
                                 
                                Working...
                                X