Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpdate() occurs every tick for Renko bar.

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

    OnBarUpdate() occurs every tick for Renko bar.

    OnBarUpdate() occurs every tick for Renko bar ,even when Calculate = Calculate.OnBarClose; is set. In addition I have in my indicator 1min ask (primary) and added 1min bid dataseries , all three for the same instrument. for 1-minute dataseries OnBarUpdate() occurs only 1 per minute. Any clue ? Thanks.

    #2
    I should add I am working on historical data only , with Tick replay.

    Comment


      #3
      WITHOUT tick replay.

      Comment


        #4
        Renko should run on second series, try this

        protected override void OnBarUpdate()
        {
        if (BarsInProgress == 0)
        return;

        Comment


          #5
          Hello xTrader1,

          Thank you for your reply.

          I'm a little confused as to how you are testing here, as calculating On Each Tick is not possible on historical data (such as past data on a chart or data used in the Strategy Analyzer) as all that is known is the OHLC of each bar. Are you perhaps using Market Replay data, not historical data?

          If you could provide a reduced example script and clear, step by step instructions on how to replicate this behavior, that would be very helpful. Please ensure no code that is not necessary to reproduce the issue is included. You can export your reduced script from Tools > Export > NinjaScript Add-on. Please attach the resulting .Zip file to your reply.

          Thanks in advance; I look forward to assisting you further.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          64 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X