Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X