Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Concurrent access to all bars OHLC data

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

    Concurrent access to all bars OHLC data

    Greetings,
    I'm porting a strategy I wrote in C# for Wealthlab, but data is handled between the two systems. I've gotten thru most of the major hurdles, this is the last one I hope.

    My code needs to know what the number of the last bar, so that it know's it's in the last loop of OnBarUpdate(). Any ideas?

    Thanks in advance -Dean
    Last edited by cybertunerone; 02-01-2009, 09:37 PM.

    #2
    Hello,

    We do not provide support for what you are doing generally.

    However, I can help you with NinjaScript. By "last" bar do you mean the right most or the left most? CurrentBar is the number of bars on the chart at all times. This link will help:
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ben View Post
      Hello,

      We do not provide support for what you are doing generally.

      However, I can help you with NinjaScript. By "last" bar do you mean the right most or the left most? CurrentBar is the number of bars on the chart at all times. This link will help:
      http://www.ninjatrader-support.com/H...urrentBar.html
      Thanks for the help. I need to know the rightmost bar. I'm using the CurrentBar but I need to know when OnBarUpdate() is in its last iteration. To put it another whay, when CurrentBar == RightMostBar, if there was a RightMostBar variable.

      Comment


        #4
        NinjaTrader does not peak into the future. To the system as it is processing, it is always the right most bar.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X