• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Patrick H.NinjaTrader Customer Service

    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.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Newtrader101, Today, 10:31 AM
        0 responses
        3 views
        0 likes
        Last Post Newtrader101  
        Started by rwilliam, Yesterday, 03:55 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by RandanAL, Today, 09:05 AM
        0 responses
        4 views
        0 likes
        Last Post RandanAL  
        Started by cstern71, 09-02-2019, 10:30 AM
        4 responses
        63 views
        0 likes
        Last Post Lancer
        by Lancer
         
        Started by Hanstanz, Today, 04:44 AM
        0 responses
        11 views
        0 likes
        Last Post Hanstanz  
        Working...
        X