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 GLFX005, Today, 03:23 AM
        0 responses
        2 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        11 views
        0 likes
        Last Post XXtrader  
        Started by Waxavi, Today, 02:10 AM
        0 responses
        6 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by TradeForge, Today, 02:09 AM
        0 responses
        14 views
        0 likes
        Last Post TradeForge  
        Started by Waxavi, Today, 02:00 AM
        0 responses
        3 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Working...
        X