Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add a second Instrument to Panel 2 of chart via ninjascript?

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

    Add a second Instrument to Panel 2 of chart via ninjascript?

    Is it possible to add a second instrument (2nd data series, different instrument) in panel 2 of the same chart that holds my Primary data series via NinjaScript (not by right-clicking on chart, etc)? My strategy manages trades in 2 different instruments and I would ideally like both instruments to be graphically displayed on the same chart in different panels, rather than 2 separate charts each running the strategy. And the strategy would be drawing lines on both panels, so would I need Panel 2 to have access to the ChartBars Class for the second instrument?
    Last edited by pkr75; 09-10-2022, 11:55 AM.

    #2
    Hello pkr75,

    That would not be possible to add another series to the chart. All secondary series are invisible to the chart and only available in the script. Your strategy can use multiple data sources but only the primary is visible.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    646 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    367 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    570 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X