Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Moving average slope

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

    Moving average slope

    Hi , having a spot of trouble using the strategy analyzer wizard to determine if the slope of a SMA is up/down.

    For example I would only want to go long if the 50 SMA were pointing up/rising . I get boolean error whatever I try.

    How can I achieve that using the wizard? Thank you.

    #2
    In the Condition Builder, on the left choose Misc and then Rising or Falling. On the bottom left in Input Series select SMA(50). On the right, select Misc and then select true.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Slope angle

      Originally posted by NinjaTrader_Josh View Post
      In the Condition Builder, on the left choose Misc and then Rising or Falling. On the bottom left in Input Series select SMA(50). On the right, select Misc and then select true.
      Thank you for that, works well. Can you also tell me how to set it to go long only if SMA(50) has a upward slope of say 5 or 10 degrees?

      Comment


        #4
        Hi, you can check out the 'Krause Slope' posted to our sharing section for this - http://www.ninjatrader-support2.com/...&id=37&catid=1

        It will retrun you the slope in degress.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thanks Bertrand, I've been looking for that snippet of code for slope for one of my indicators.
          Last edited by eDanny; 02-23-2009, 12:12 PM.
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment


            #6
            You are welcome eDanny!
            BertrandNinjaTrader Customer Service

            Comment


              #7
              krause slope

              Hi,
              i was wondering if i could somehow remove the dots in the krause slope indicator. i like the slope part but it leaves all these annoying dots on my screen.
              thanks neal

              Comment


                #8
                nealpek,

                You will have to go through the code and remove the segments you don't want from there. If the dots are done by a plot you could set that plot to transparent.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  hi josh,
                  their is no plot to change. would it be difficult to remove this from the code?
                  of course i have no idea what i am doing!! lol
                  neal

                  Comment


                    #10
                    Neal,

                    Unfortunately I would not know as this is not our code. It may be best to try and contact the original author directly with your request. Good luck.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      If i were to attempt it, how do i access the code?
                      neal

                      Comment


                        #12
                        Tools>Edit NinjaScript and select the file to access the code.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          last thing Josh,
                          once i remove what i think, what would be the last steps? Compile... etc?
                          thanks for your help
                          neal

                          Comment


                            #14
                            Yes, correct, work your changes in, press F5 to compile the code. Then reapply fresh to the chart or press F5 there as well to reload NinjaScript related tools.
                            BertrandNinjaTrader Customer Service

                            Comment


                              #15
                              Thanks Bertrand
                              neal

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by algospoke, Today, 06:40 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post algospoke  
                              Started by maybeimnotrader, Today, 05:46 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post maybeimnotrader  
                              Started by quantismo, Today, 05:13 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post quantismo  
                              Started by AttiM, 02-14-2024, 05:20 PM
                              8 responses
                              167 views
                              0 likes
                              Last Post jeronymite  
                              Started by cre8able, Today, 04:22 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post cre8able  
                              Working...
                              X