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 arvidvanstaey, Today, 02:19 PM
        4 responses
        11 views
        0 likes
        Last Post arvidvanstaey  
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        61 views
        0 likes
        Last Post samish18  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        9 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        6 responses
        48 views
        0 likes
        Last Post algospoke  
        Working...
        X