Help with indicator/alert

 

Hello everyone,


my question is to all programmers with some experience,


I´m trying to find or create an indicator or alert that send me an email when the SMA 50 croses the line chart or price (either way up or down) and send the alert when the price be 6 pip up or down after SMA 50 have crosed the line chart price, if some one can give me some guide with this, or create an example and can base on, i will appreciate it,


Thanks in advance!

Best regards!!


IMAGE