Multiple TimeFrame Crossover

 

Hi,

I want to show the crossover from the daily chart on a H1 or H4 chart. But I only want to show it once. The problem is, since the data is from the daily chart if there is a crossover it will be correct for the entire day on the H1 and H4 chart. So at every new bar on the H1 and H4 chart I will get a signal. How do I only capture the one at bar close on the daily chart?

Thanks in advance.

 
The D1 cross only occurs at the end of the D1 bar, which is the first bar of the new day.
Reason: