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 futtrader, 04-21-2024, 01:50 AM
      4 responses
      41 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      12 views
      0 likes
      Last Post bltdavid  
      Started by port119, Today, 02:43 PM
      0 responses
      8 views
      0 likes
      Last Post port119
      by port119
       
      Started by Philippe56140, Today, 02:35 PM
      0 responses
      7 views
      0 likes
      Last Post Philippe56140  
      Started by 00nevest, Today, 02:27 PM
      0 responses
      7 views
      0 likes
      Last Post 00nevest  
      Working...
      X