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 bmartz, 03-12-2024, 06:12 AM
          5 responses
          32 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by Aviram Y, Today, 05:29 AM
          4 responses
          13 views
          0 likes
          Last Post Aviram Y  
          Started by algospoke, 04-17-2024, 06:40 PM
          3 responses
          28 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by gentlebenthebear, Today, 01:30 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by cls71, Today, 04:45 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X