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 gtheaded, Today, 04:38 PM
        0 responses
        6 views
        0 likes
        Last Post gtheaded  
        Started by trader252, Today, 04:34 PM
        0 responses
        12 views
        0 likes
        Last Post trader252  
        Started by WiseAmo, Today, 04:34 PM
        0 responses
        8 views
        0 likes
        Last Post WiseAmo
        by WiseAmo
         
        Started by Don22Trader1, Today, 04:20 PM
        0 responses
        9 views
        0 likes
        Last Post Don22Trader1  
        Started by Tradarr, Yesterday, 06:23 PM
        2 responses
        53 views
        0 likes
        Last Post -=Edge=-  
        Working...
        X