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:	148
Size:	25.7 KB
ID:	1167449

    Click image for larger version

Name:	nt1.png
Views:	145
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.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      I understand both of those explanations. Thx

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by traderqz, Yesterday, 04:32 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by f.saeidi, Today, 05:56 AM
      1 response
      4 views
      0 likes
      Last Post Jltarrau  
      Started by Jltarrau, Today, 05:57 AM
      0 responses
      4 views
      0 likes
      Last Post Jltarrau  
      Started by Stanfillirenfro, Yesterday, 09:19 AM
      7 responses
      51 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by TraderCro, 04-12-2024, 11:36 AM
      4 responses
      71 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X