Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetDayBar() CurrentDayOHL() PriorDayOHLC() with multiple instruments

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

    GetDayBar() CurrentDayOHL() PriorDayOHLC() with multiple instruments

    Hello,

    Is it possible to use these functions inside a multi instruments strategy? I can't find the answer. (for GetDayBar() CurrentDayOHL() PriorDayOHLC() and other similar functions)

    For example
    CurrentDayOHL().CurrentOpen [int barsAgo] [Int InstrumentNumber]

    Or do they only apply to the master instrument?

    Thanks

    #2
    Hello Makau,
    Thanks for your note.

    Please specify the bar series to calculate the values for the specified instrument. An sample code will be like
    Code:
    double openSecondary = CurrentDayOHL(Closes[1]).CurrentOpen[0];
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hello

      Thanks a lot for your prompt answer!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      120 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      174 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      92 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      134 views
      0 likes
      Last Post cmoran13  
      Working...
      X