OPEN-SOURCE SCRIPT
Updated Strategy Backtesting Template [MYN]

A few people have been asking me to share my backtesting template. Currently I use this as my starting point for validating existing strategies and developing new ones.
Features:
Features:
- Trading Date Range [Start / End]
- Trade Direction [Long/Short/Both]
- 4 progressive take profits with target percents and percentage of position to take profit on (Thanks adolgo)
- Variable percentage Stop Loss
- Automatic ProfitView Alert Syntax builder for Longs and Shorts
- ADX checkbox to automatically add conditional logic to your strategy
Release Notes
Fixed typo in the example strategy shortCondition referencing the longConditionEntryRelease Notes
- Added EMA Filter
- Added MASANAKAMURA ADX option to existing ADX Filter
- Added Time Of Day Window
- Added Performance Summary Dashboard
- Added Monthly Performance Dash (Thanks QuantNomad)
- Fixed leverage calculation (Thanks Cybertron)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
If you're interested in exploring and discovering other high quality free strategies come join us in Discord: discord.gg/2wkm9QqSuY
➖➖🟦➖➖➖🟦
➖🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦🟦🟦🟦🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦➖➖➖🟦🟦
➖➖🟦➖➖➖🟦
➖🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦🟦🟦🟦🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦➖➖➖🟦🟦
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
If you're interested in exploring and discovering other high quality free strategies come join us in Discord: discord.gg/2wkm9QqSuY
➖➖🟦➖➖➖🟦
➖🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦🟦🟦🟦🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦➖➖➖🟦🟦
➖➖🟦➖➖➖🟦
➖🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦🟦🟦🟦🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦➖➖➖🟦🟦
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.