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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X