Your B-Clock is simple and excellent. Unfortunately it will not work with Strategy Tester.
As am a newbie, and see that it uses CurTime() (Server) to calculate time to bar close.
There may a way to do it using the TimeLocal to calculate timepassed at each tick,
adding it to Time (Bar open time) and then deducting it from the calculated next bar opening.
H'mmm not too sure how to rate this ?
After trawling through literally hundreds of indicators I liked what I saw when I came across "b-clock modified.mq4" - something I have always had the need for and was glad I found it.
# 1 Can't edit it's position which in my humble opinion is totally wrong - Should be to the right of the last candle
# 2 Can't edit it's colour which in my case clashes with my chart colour scheme
Got that lot off my chest - for what it's worth - C'est la vie - such is life.
Eventually decided on ONE star - hoping it might draw some attention from the owner and get it fixed - Because I WOULD like it IF ?
Colour is the CORRECT English spelling
Color is the LAZY English spelling