Hi,
 
I would like to take Buy signals from Hourly chart only if the
Close is above moving average 10-SMA in daily chart. 
 
i.e.          If
C>MA(C,10) in daily chart, I would like to take and backtest all the Buy
Signals [up trend only] such as cross(ema(c,5),ema(c,13)) on same 60-minute
chart. 
 
How can I do the above coding? Will the two timeframes interfere
each other?
 
Thank you in advance.
 
Clement