I am creating an algorythm that buys a stock if it cross a high and its following 5min candle closes above that high. I ran a backtest and went to that day. My fill prices arent even on the chart? 

The basis of my algo is that I create a rolling window for the 5min candle and use the highs for my resistance levels. Since I consolidated the data on the 1min for my rolling window will that effect my high values?

Any help would be greatly appreciated!

184659_1641271461.jpg