Hi,

I am looking for example(s) of indicator(s) that use current price of a security at minute resolution as a close price for daily resolution in current day that has not yet ended (crossed the resolution frontier).

What I want to achieve for example is the following simplified “algo”: one minute before market close I want to place market buy order if SPY is trading above its 200 day moving average. So I have daily bars complete until previous trading day. What I want is that one minute before the close of the current day close of last completed minute bar (and open, high and low for the day) represent the daily bar.

Perhaps it was better described what I want already here 

Can you please share an example algorithm that would help me achieve my goal. Thanks.