Can you help me with the coding for EMA315? Buy Alert - once 3crosses 15; Sell Alert - once EMA3 crosses down EMA15

Can you help me with the coding for EMA315? Buy Alert - once 3crosses 15; Sell Alert - once EMA3 crosses down EMA15

As per above condition. you can check below Expert Advisor

Thanks a lot AlgoGeek