TradingView
allanster
21 gen 2020 01:46

How To Set Backtest Time Ranges 

Bitcoin / United States DollarCoinbase

Descrizione


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!

Note di rilascio

Cosmetic.

Note di rilascio

Updated for Pine Script v5.
Commenti
PineCoders
allanster
@PineCoders, thank you, very much appreciated!
edervonte
Thank you so much this will help no end to backtest specific times.
allanster
@edervonte, apologies for missing your message, thanks for your interest and comment.
edervonte
@allanster, no thank you for your time and adding value to the community.

in the mean time i hope you have the most wonderful week
TrustingTurtle
Thank you, this was helpful
allanster
@TrustingTurtle, apologies for missing your comment, it is appreciated.
lxkomitin
не работает
REX_LEEE
Thank you
allanster
@REX_LEEE, thanks for your interest and comment, it is appreciated.
Altro