Set the values for your EMAs by clicking the cog after adding this indicator to your chart.
A Long or Short signal is fired when EMA1 crosses EMA2 - a cross up is a Long signal, a cross down is a Short signal.
Connect to your Bots (3commas / 3C.exchange recommended) to automate buys and sells!
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.