Ive looked around and haven't found any info on how to get an indicator or ea to alert/email not when crosses, but when bar closes (particularly 1 hour)over trendline. And an indicator when it closes over an ema. I'm new to coding but am willing to learn so any advice im grateful for. This is the one i'm trying to get this to work on.
Attached File(s)