Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CurrentBar in live trading

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

    CurrentBar in live trading

    Hi,
    How does the CurrentBar property behaves in real time live trading? Does it count the number of bars since the strategy was enabled? Does it reset only when disabling the strategy, regardless of disconnections, end of day etc.?

    Thanks,
    Boaz

    #2
    Hello boaza,

    Thank you for your post.

    CurrentBar will count the number of bars on the chart starting from the left most bar, this behavior is the same in both simulation and live trading. Regardless of when the strategy started the CurrentBar will count from the left most bar.
    For example, if a chart has 100 bars of data, the very first bar of the chart (left most bar) will be number 0 (zero) and each subsequent bar from left to right is incremented by 1.

    For information on CurrentBar please visit the following link: http://www.ninjatrader.com/support/h...currentbar.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Patrick,
      I guess my confusion arises from the interchanging use of 'Chart' and 'Automated Strategy'. Are the two equal in NT?

      Boaz

      Comment


        #4
        Hello Boaz,

        Thank you for your response.

        The Chart is the visual representation of the bars (CandleStick, OHLC, etc.), where as the strategy is developed to use the chart data to determine Entries and Exits.

        CurrentBar is an integer value representing the current bar of the chart.

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        603 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        22 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        21 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Working...
        X