Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time[] series goes back in time

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

    Time[] series goes back in time

    Hi,

    I was working on this strategy that uses two dataseries (ES 1-range and ES 2-renko) and while debugging I discovered that the OnBarUpdate() method gets called with Time[] going backward on multiple occasions

    If I add this snippet in my OnBarUpdate() :

    if (lastTime != null && DateTime.Compare(Times[1][0], lastTime)<0) {
    Print("Time bug??");
    }
    lastTime = Times[1][0];


    I am seeing multiple times in the output that the test evaluates to "true", is this a bug? or am I missing something here.
    I was under the impression that the feed of data should always move forward in time?

    Thank you

    #2
    Hello joostb,

    Thank you for your post.

    Renko bars redraw their open in real time, so it's expected to see ticks with different timestamps much like these below:

    Tick for Bar 487413 at 11/6/2020 7:29:52 AM
    Tick for Bar 487412 at 11/6/2020 7:29:51 AM

    This is expected when using Renko bars on real time data.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    49 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    67 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X