@han-yang said in Data executed twice on end of the day: Here's my code No. That's a redacted version of something which therefore doesn't help. If you want to hide your valuable, profitable and secret intellectual property, create a small snippet which demonstrates your problem. @han-yang said in Data executed twice on end of the day: the logic flow would run [next] twice somehow on the same bar, 2019-xx-xx 13:30:00 There is NO SOMEHOW TWICE. If one of the data feeds doesn't move forward because it cannot move forward (it would overtake the other data feed) it will deliver the same value, which is the only value available. You want to read the Documentation on Concepts => Platform Concepts and the section about the len of lines