Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CurrentDayOHL()

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

    CurrentDayOHL()

    During the OnMarketData event in a multi-series strategy it appears that the CurrentDayOHL() values always return the values for the primary instrument. Even when BarsInProgress > 1. See attached script and following output. Primary instrument in this example is ES.

    Instr=TICK BIP=1 Price=804 CH=1098.5 CL=1080.75
    Instr=TF BIP=6 Price=618.5 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.25 CH=1098.5 CL=1080.75
    Instr=YM BIP=5 Price=10037 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.25 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1774 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.5 CH=1098.5 CL=1080.75
    Instr=YM BIP=5 Price=10036 CH=1098.5 CL=1080.75
    Instr=TICK BIP=1 Price=782 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.5 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1773.75 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.25 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.25 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.5 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1773.75 CH=1098.5 CL=1080.75
    Instr=TICK BIP=1 Price=780 CH=1098.5 CL=1080.75
    Instr=YM BIP=5 Price=10037 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1774 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.5 CH=1098.5 CL=1080.75
    Instr=YM BIP=5 Price=10037 CH=1098.5 CL=1080.75
    Instr=TF BIP=6 Price=618.5 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1773.75 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1773.75 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.25 CH=1098.5 CL=1080.75
    Instr=YM BIP=5 Price=10037 CH=1098.5 CL=1080.75
    Instr=TF BIP=6 Price=618.5 CH=1098.5 CL=1080.75
    Instr=NQ BIP=4 Price=1773.75 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.5 CH=1098.5 CL=1080.75
    Instr=TICK BIP=1 Price=772 CH=1098.5 CL=1080.75
    Instr=ES BIP=0 Price=1095.25 CH=1098.5 CL=1080.75
    Attached Files

    #2
    hemlock,

    That would be correct. CurrentDayOHL() is another indicator you are calling and by default that indicator would be running off of the primary bars object even when using BarsInProgress = 1.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      That is not how 6.5 works. In 6.5 CurrentDayOHL() contained the values for the series referenced by BarsInProgress. Are you telling us that version 7 is now different?

      Comment


        #4
        Originally posted by hemlock View Post
        That is not how 6.5 works. In 6.5 CurrentDayOHL() contained the values for the series referenced by BarsInProgress. Are you telling us that version 7 is now different?
        Will research and get back to you.
        RayNinjaTrader Customer Service

        Comment


          #5
          Please see here: http://www.ninjatrader-support2.com/...868#post121868

          Thanks for pointing out that bug.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          599 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          344 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          558 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          557 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X