OPEN-SOURCE SCRIPT
Updated

Moving Average Cross Strategy

10025
Simply choose your moving averages and backtest shorting and longing the crossing of these MA's. Meant for dialing in MA crosses as part of a trading setup and not reason enough to take the trade. First script, work in progress.
Release Notes
Thanks to allanster for the Date Range code:
How To Set Backtest Date Range

Added input settings to change the chart time period / the number of days being backtested
Release Notes
*big fix

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.