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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      111 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      60 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      38 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      43 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      79 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X