← All scripts

How To Set Backtest Time Ranges

by allanster · Strategy · Pine Script v5 · 1,356 likes

Verifiedbit-exact

How To Set Backtest Time Ranges by allanster, a Pine Script v5 strategy, converted with PyneComp and run with PyneCore on BINANCE:BTCUSDT 30m: 57,914 plotted values compared with TradingView, every one bit-identical; all 601 trades match TradingView's entry and exit timing.

Plot match vs TradingView100%

Accuracy

  • Trades compared601 TV / 601 Pyne
  • Whole-trade match100%
  • Entry timing match100%
  • Exit timing match100%
  • Net profit (TV / Pyne)-328,994 / -328,994
  • Plots compared2
  • Plotted values compared57,914
  • Identical to the bit100%
  • Worst gapsame double
  • Pearson correlation (min)1.000000

Run

  • Bars executed28,977
  • Run time3.90 s CPU
  • Per-bar time0.13 ms/bar CPU (per chart bar)

Data window

  • SymbolBINANCE:BTCUSDT
  • Timeframe30 min
  • From2025-01-01 00:00
  • To2026-08-27 16:00
  • Bars28,977

Source

  • Pine versionv5, converted to v6 by PyneComp
  • Script revisionv3
  • LicenseMPL-2.0

SHA-256e69d0db8822fcf7bc907754bbde19f0f51a5fb8afe11e3021c51fda5a931a7fb

View on TradingView Permalink: How To Set Backtest Time Ranges

Measured 2026-09-27 · How this is measured · All scripts