Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Addressing multiple instruments in chart panel

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

    Addressing multiple instruments in chart panel


    Hi All,

    The scenario is two instruments defined to the chart panel as seen in the 2 pics below,

    So in an indicator...

    a) How can BarBrush be used on the second symbol ?
    b) How can the OHLC values from the second instrument be accessed in "OnBarUpdate" ?


    Click image for larger version

Name:	nt2.png
Views:	193
Size:	25.7 KB
ID:	1167449

    Click image for larger version

Name:	nt1.png
Views:	187
Size:	31.3 KB
ID:	1167450
    Attached Files

    #2
    Hello Bidder,

    Thanks for your post.

    In the indicator script, you would need to add the second instrument (regardless if it is on the chart or not) in order to access the OHLC values. Please review the complete section here to best understand how to code a multi-series or time frame script: https://ninjatrader.com/support/help...nstruments.htm

    For your indicator to color the bars of a second data series, you would have to apply the indicator to that data series on the chart by selecting that series in the indicators "Input series". There are no means to color the bars of another data series.

    Comment


      #3
      I understand both of those explanations. Thx

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      162 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      313 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X