Newbie - templates?

 

Hello


Please forgive me if someone has asked this already. I am completely new to EAs and programming and had a good look on this site but cannot the answer to my question - hoping some kind folk can help me:)


I am basically looking for a sample EA that flags up when a currency's previous (1hr) high is above the closing price for that same period by a certain value. For example in simple speak...


IF Previous High (timeframe - 1 hr) minus the closing price for the previous close price (timeframe - 1 hr) is greater than 0.0001 



Hope this makes sense. Any similar examples of EAs where I can see similar logic will help.


Thank you so much