Write an AFL Code for following conditions

Job ID: 32733797

Budget: ₹600 – ₹1,500 INR

If EMA(5) AND EMA(10) is greater than EMA(50) Its is a Buy. And if EMA (10) is above ema(5) and both are above EMA(50) it has to cover. So above MA 50 Cross(5,10) is Buy and above MA 50 Cross(10,5) is cover
Viceverse in Sell Condition. file is attached for Reference