OPEN-SOURCE SCRIPT

EMA Crossover Strategy (Enhanced Debug)

its a very simple strategy using
a short ema of 10
a medium ema of 50
and a long ema of 200

it only makes buy trades if the price is above the long ema
and only makes short trades if the price is below the long ema

then it enters buy trades if the short ema crosses obove the medium ema
and only enters short trades if the short ema crosses below the medium ema

it also closes its buy positions if the short ema crosses below the medium ema

and closes its sell positions in the apposite situation
Exponential Moving Average (EMA)

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer