• 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 changes in NT8. No longer updating with chart scroll

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

    CurrentBar changes in NT8. No longer updating with chart scroll

    Hi,

    I have noticed that there is a difference in behavior of the "CurrentBar" in NT8 as opposed to NT7.

    CurrentBar in NT7 always represented the lastbarpainted. This was very handy as it meant that I could simulate how my indicator would perform in a live market bar by bar by just scrolling back, hitting F5 and then clicking the keyboard right arrow one by one. Provdided that the condition was set to only run my logic when lastBarPainted = Currentbar this is a great way to see an indicators behavior and backtest in a quick and easy way for a process hungry indicator.

    Now NT8 appears to cycle through every CurrentBar upon indicator loading until it meets the Count of the chart irrespective of where the chart is scrolled to when the indicator is initiated.

    In reading the NT8 ninjascript documentation i have noticed that there is a feature to read the last painted bar which is "ChartBars.ToIndex" which is solution to force the indicator to only run on the current scrolled bar by using the following statement

    if (CurrentBar != ChartBars.ToIndex)return;

    The issue with this is that in scrolling further through the chart from this point the indicator will no longer run on each subsequent bar as the CurrentBar is already at the end of the chart. All my logic is written to work backwards from currentbar so I am really hoping to be able to replicate the NT7 behaviour as described above.

    Any suggestions?

    Cheers.

    Marty

    #2
    The ability to step bar by bar has been has already been brought up and I hope they will add this feature back. Add my vote again.
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      Thanks eDanny.

      Comment


        #4
        Originally posted by eDanny View Post
        The ability to step bar by bar has been has already been brought up and I hope they will add this feature back. Add my vote again.
        My vote needs to be added 10 times more.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bubblegum, Today, 03:51 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by johnnybegoode, 05-24-2019, 10:16 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by manugarc, Today, 01:15 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by marianfed, Yesterday, 09:47 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Steve L, Today, 10:01 PM
        0 responses
        2 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Working...
        X