OPEN-SOURCE SCRIPT

Strategy Backtesting Template [MYN]

Updated
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:

  • 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 longConditionEntry
Release 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)
ADXbacktestingdaterangemultipletakeprofitsPine utilitiesprofitviewstoplosstakeprofittemplatetradedirection

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?


If you're interested in exploring and discovering other high quality free strategies come join us in Discord: discord.gg/2wkm9QqSuY

➖➖🟦➖➖➖🟦
➖🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦🟦🟦🟦🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦⬜️⬜️🟦⬜️⬜️🟦🟦
🟦🟦🟦🟦🟦🟦🟦🟦🟦
➖🟦🟦➖➖➖🟦🟦
Also on:

Disclaimer