Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar Timer Refresh

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

    Bar Timer Refresh

    Hi, I've got the bar timer indicator on my charts but it seems that it does only refresh every market tick which is ineffective on a subminute chart in a slow market. How I can set it up to refresh every second?

    Using NT 8 by the way....

    Thanks!
    Lurefo
    Last edited by lurefo; 10-19-2015, 06:13 AM.

    #2
    Hello lurefo,

    Thank you for your inquiry.

    With how the BarTimer is built, it depends on the ticks coming in to function and remain in-sync with the bars on the chart.

    If you would really like a timer that will tick on every second regardless of ticks coming in or not, I would suggest checking out this reference about the Timer class on MSDN under the Examples section: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

    However, please be aware that this may not accurately follow the chart's bars forming.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hi Zachary, I've checked the msdn link. How do I go from there to integrate that timer into my charts? Should I create a new indicator with the c# code from msdn? not too good with developing... thanks for the help.

      Lurefo

      Comment


        #4
        Hello Lurefo,

        You could create a duplicate copy of the already existing BarTimer indicator and move on from there. I'd say that the indicator provides a great base to start off with.

        To do this, you'll want to click on New -> NinjaScript Editor in the NinjaTrader Control Center. When the NinjaScript Editor window appears, double-click the Indicators folder on the right-side pane of the window. Double-click BarTimer. The code for the BarTimer indicator will appear. You'll want to right-click inside of this window and select Save As. Name the new indicator to whatever you'd like and then press OK.

        You'll now be able to edit the code in this copy of BarTimer.

        Please let me know if you have any specific questions and I'll be glad to assist further.

        EDIT: I realized I provided you instructions on how to do this in NinjaTrader 7. I've updated this post for NinjaTrader 8.
        Last edited by NinjaTrader_ZacharyG; 10-20-2015, 07:13 AM.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        72 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        44 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        25 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        29 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        60 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X