Result from indicator in 4hr window to input into ea on 1hr window

 
I am looking for coding to do the following:

I have an indicator on a 4hr chart window which when it shows a buy signal an EA on the equivalent 1hr chart will use that signal ( the 4hr one) as one of the conditions to enter a trade.

What coding will allow for this?

Thanks
 
read about the parameter of iCustom(..) and the techn. indicators like iMA(..)
 
Will give it a go.
Thanks

Reason: