Multi Time Frame Indicator - Is it possible to get it to alert once only for every timeframe 5 mins before timeframe ends?

 

Hi guys,


Was wondering as I have a Multi Time Frame indicator checking for a certain bar pattern (mainly inside bar) on the H1, H4, D1, W1


It works on the basis of


if Previous bar high < Previous bar high + 2 && Previous Bar low > Previous bar low + 2


So it is using previous bar to prevent it from alerting me every 1 min say 30 mins into the hour, an inside bar is formed and it goes mad


Is it possible to get the indicator to alert ONLY at 5 mins before the end of the time frame once?



So for H1 - 55 mins, H4 - 235mins, D1 - 1435 mins


You get what I mean?


Is it possible and how do I do it?

 
Anyone can help on this? Is it possible?