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 AttiM, 02-14-2024, 05:20 PM
      12 responses
      212 views
      0 likes
      Last Post DrakeiJosh  
      Started by cre8able, 02-11-2023, 05:43 PM
      3 responses
      237 views
      0 likes
      Last Post rhubear
      by rhubear
       
      Started by frslvr, 04-11-2024, 07:26 AM
      8 responses
      116 views
      1 like
      Last Post NinjaTrader_BrandonH  
      Started by stafe, 04-15-2024, 08:34 PM
      10 responses
      47 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by rocketman7, Today, 09:41 AM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X