Need Help on this? - page 2

 
WHRoeder:
Are you hard of reading? Won't work as Bartime will ALWAYS be zero. Code runs every tick. Search once per bar and learn the difference.
His Bartime variable is probably global and he shows only a part of his code.
 
angevoyageur:
His Bartime variable is probably global and he shows only a part of his code.

Yes. I defined Bartime as global. it works fine now with anytime frame chart. Hope i did correct.