Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Intra Bar charts update

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

    Intra Bar charts update

    NT system support two types of updates: on bar and on tick.
    If CalculateOnBarClose = true, OnBarUpdate() is called on the close of each bar otherwise it is called on each incoming tick.

    I would like not to calculate on every tick, but 5 or 10 times inside every bar.

    Do you have such setting or code sample?

    Thanks
    byi777

    #2
    Hello,

    Thanks for your note.

    Do you have a set bar type you would want to do this on/ or bar type you will be running this on?

    I look forward to assisting you further.

    Comment


      #3
      Hello, Bret,

      I have set chart to 3 min Candlestick, but would like to have updates to indicators, let's say, every 20 sec to avoid processor overload when calculating for every tick for active stock.

      Thanks
      byi777

      Comment


        #4
        Hello,

        This is unofficially supported.

        NinjTrader does not run of timers, only ticks received or COBC=True.

        Though other members have had sucess with using general c# timers added into code however I would be unable to assist with this. You would need to search the forum/general c# knowledge websites for this information.

        Let me know if I can be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,607 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        15 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X