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 briansaul, Today, 05:31 AM
    0 responses
    2 views
    0 likes
    Last Post briansaul  
    Started by fwendolynlpxz, Today, 05:19 AM
    0 responses
    4 views
    0 likes
    Last Post fwendolynlpxz  
    Started by traderqz, Yesterday, 12:06 AM
    11 responses
    28 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by PaulMohn, Today, 03:49 AM
    0 responses
    8 views
    0 likes
    Last Post PaulMohn  
    Started by inanazsocial, Today, 01:15 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X