Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Correlation of instrument parameters

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

    Correlation of instrument parameters

    Hi All
    Anyone can help with a custom script to correlate the "Open" and "High minus Close" of candles within a preset, sliding "Period" of the same instrument?
    This is similar to the correlation indicator. Rather it correlates the above mentioned parameters.
    Thank you.

    #2
    Hi MSerag, thanks for posting.

    The correlation script is open source and available to study through the NinjaScript Editor. There is also the Spread indicator that can help:

    Plots the Spread of two instruments The first instrument is the primary chart data series. The secondary instrument is specified by the parameter "Symbol2". The Parameters "Qty1" and "Qty2" are multipliers which are applied to each instrument's price before adding the two; default values are "Qty1=1" and "Qty2=‐1" which will simply plot the difference between […]


    kind regards,
    -ChrisL

    Comment


      #3
      Thank you very much Chris. It worked.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      639 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      572 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X