Hi ladies and gentlemen

I'm a newbie to quantitative trading but I been trading for couple years now.  So, I would like to start by writing an algorithm that only buys and sells Nasdaq CFD (NAS100) based on a certain EMA and time frame. What lines of code I would need and what a great start would be?

Thanks you very much in advanced

Really appreciated😊