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

Find the 'slope' on regression channel

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

    Find the 'slope' on regression channel

    This is a 'newbie' question (apologies), but is there a nice straightforward way to find the slope of the regression channel (DrawObject). No matter what I try, I seem to keep working towards recoding a lot of stuff that Ninja already does.
    I call the Regression Channel from an indicator, and need to determine the slope of the channel to make other decisions.

    Thanks.....

    #2
    Hello photog53,

    The built in slope formula is looking for a data series as input, so unfortunately will not be able to simply pass in a drawing object. Slope calculation on a drawing object would have to be manually calculated by exposing the objects values with IRegressionChannel:


    If you want to duplicate our built in Slope() indicator, it's a change in Y value / # of bars.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ryan, how can we use a indicator that shows and allows us to select slope angle by DEGREES? Thanks Ryan...

      Comment


        #4
        Ryan,
        Thanks for the quick response....

        (I was afraid this would be the case....but I had to ask. Sometimes you guys have very elegant
        alternatives that I don't know about).....

        Comment


          #5
          birdog -

          I would have a look at this indicator submitted by NinjaTrader_Tim which offers slope using a few different calculation methods:


          Photog - Thanks for the reply. Unfortunately, not aware of an alternative to working with IDraw and manually calculate here.
          Ryan M.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,609 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          16 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X