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 Taddypole, 04-26-2024, 02:47 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Eduardo  
      Started by futtrader, 04-21-2024, 01:50 AM
      6 responses
      58 views
      0 likes
      Last Post futtrader  
      Started by sgordet, Today, 11:48 AM
      0 responses
      4 views
      0 likes
      Last Post sgordet
      by sgordet
       
      Started by Trader146, Today, 11:41 AM
      0 responses
      5 views
      0 likes
      Last Post Trader146  
      Started by jpapa, 04-23-2024, 07:22 AM
      2 responses
      22 views
      0 likes
      Last Post rene69851  
      Working...
      X