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

Regression for two different instruments

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

    Regression for two different instruments

    Is there a method in NT that can calculate slope or regression value for two instruments? For example, ES and YM or ES and NQ instead of just on the primary instrument itself. What I am trying to see here is based on regression of the two instruments, if the primary instrument is trading at price x, then it implies the price value for the secondary instrument

    #2
    Hello Boonfly8,

    Thanks for your post.

    No, there is no method that would calculate slope or regression value of two instruments. I am not aware of any indicators that would provide that either.

    You might take a look at the NinjaTrader platform new indicator "Correlation" and can perhaps use that as an input to slope().

    From the release note: Added Correlation indicator

    Indicator

    Feature # 13755

    The correlation indicator will plot the correlation of the data series to a desired instrument. Values close to 1 indicate movement in the same direction. Values close to -1 indicate movement in opposite directions. Values near 0 indicate no correlation.



    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:00 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by alifarahani, Today, 09:40 AM
    5 responses
    23 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PhillT, Today, 02:16 PM
    2 responses
    7 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Working...
    X