Choix de la rédactionOPEN-SOURCE SCRIPT

How To Set Backtest Time Ranges

Mis à jour

Example how to set the time range window to be backtested for both entries and exits. Additional examples are also included showing how to set the date range and toggle plot visibility.

By incorporating this code with your own strategy's logic, it will allow you to backtest various time windows.

Much gratitude to LucF and a.tesla2018 for help with including ':1234567' for time ranges on weekends. Thank you both!


NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Notes de version
Cosmetic.
Notes de version
Updated for Pine Script v5.
backtestbacktestingexamplehowtoMoving AveragesrangeTIMEtimesTrend Analysistutorialwindow

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
Aussi sur:

Clause de non-responsabilité