Hi jcl,

Thanks for the tick/tock time fix. I can confirm that tick/tock does in fact run at the end of the bar in v2.40.4

However, the tmf that execute before the run() is still running at the beginning of the bar. This difference between v2.35 and v2.40 causes meaningfully significant difference in backtest results.

In 2.40.4, the execution sequence looks like this:
tmf [timestamp = bar begin]
tick [timestamp = bar END]
tock [ timestamp = bar END]
run [timestamp = bar END]

I believe the TMF in this group should also execute at a timestamp=bar END, and with this sequence

tick [timestamp = bar END]
tock [ timestamp = bar END]
tmf [timestamp = bar END]
run [timestamp = bar END]

Basically tmf should run AFTER tick/tock, like v 2.35

Hope you agree.

Thanks.