OPEN-SOURCE SCRIPT

MA-EMA Crossover Alerts

This is a script for getting alerts for the MA-EMA XO Strategy that I published recently.
This is probably the first version that I am putting out for this logic.
Based on feedback (and some coding suggestions and support if anyone is willing), I will try to improve this further.
So, what do we have in this script -
I have created 5 alert conditions. The 4 alerts are straight-forward : Entry / Exit alerts for Long / Short.
The fifth alert is just a single Alert which is triggered if any of the 4 alert conditions are met. Then user can check the chart to see what trade is triggered.

I am not explaining the logic of the indicator here since it is kind-of covered in the strategy.
Moving Averages

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