Announcement

Collapse
No announcement yet.

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.
    BrettNinjaTrader Product Management

    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.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X