Indicator shirt

 

Hi guys

I have this indicator that I made from a mash of different code and it works fine but a bit tacky I’m just wondering how to make a slight change. At present it marks the OHLC of a specified time frame. In my case this (480 min, 8H) on to whatever chart it is applied to. For me this is a lower time frame trigger chart so I can see the entry levels. At the moment it repaints as the live bar is forming and also marks many bars back. All I want to do is project the OHLC of the previous completed bar onto the current forming bar as static lines and nothing else. That will just keep moving forward each time a new bar opens.

Ps: Sorry the title is meant to indicator shift not shirt

Any advice much appreciated, Mat

Files:
Reason: