OPEN-SOURCE SCRIPT

SPX EMA Strategy with Opposite Trades

Updated
Will enter a trade based on a comparison of the 5/40 minute EMA every user defined number of minutes. It will also enter a trade in the opposite direction if there is an EMA crossover or if 1 minute before the next interval
Release Notes
This will enter a trade every user defined number of minutes in a direction based on user definable EMA values. It will also enter the opposite direction trade before the next main trade. It will enter this opposite trade either at 1 minute before the next main trade or if there is an EMA crossover, whichever occurs first
(the EMA timeframes for both the main and opposite trade are seperately user definable)
Release Notes
fix bug
Release Notes
fix
Release Notes
fix
Release Notes
fix
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