EMA / Sell Rate Trigger

 

Hi All:

I am brand new to coding in this platform, so I don't have a clear plan of how to do this:

I have a requirement to create an EMA and have an alert triggered when the sell rate of whatever currency pair on a chart is selected ( I believe that is Symbol() function that is used for this ?? ) crosses the value of the EMA. The period for the EMA should be a variable.

If anyone could please show some code for this ( hopefully I'm not asking for something requiring too much code to type out), it would be greatly appreciated.

Thanks in advance.

 

could you be more specific as to what happens to cause the alert to be triggered ?

is it : if Bid > EMA - Sell, if Ask > EMA - Buy ? something like that ?