← All scripts

SuperTrended Moving Averages Strategy

by uysgkgd · Strategy · Pine Script v5 · 1,604 likes

Lookaheadbit-exact

SuperTrended Moving Averages Strategy by uysgkgd, a Pine Script v5 strategy, converted with PyneComp and run with PyneCore on BINANCE:BTCUSDT 30m: run with TradingView's future-leaks restored, its own trades change, so its results depend on data its bars could not have had and it is held apart from the accuracy score (lookahead).

Plot match vs TradingView100%

Lookahead, measured — run once with PyneCore's own rules and once with TradingView's future-leaks restored (an open higher-timeframe period read as if it had closed, or a body re-running mid-bar handed the completed bar), the script's own trades differ. Its results depend on data its bars could not have had, so its TradingView reference is itself a lookahead result. With the future-leaks restored on the PyneCore side too, its trades match TradingView 100%. Held apart from the accuracy score.

Accuracy

  • Trades compared3,436 TV / 3,429 Pyne
  • Whole-trade match81.12%
  • Entry timing match90.49%
  • Exit timing match90.4%
  • Extra Pyne entries320
  • Net profit (TV / Pyne)-9,904 / -9,995
  • Plots compared5
  • Plotted values compared61,162
  • Identical to the bit100%
  • Worst gapsame double
  • Pearson correlation (min)1.000000

Run

  • Bars executed28,871
  • Run time4.49 s CPU
  • Per-bar time0.16 ms/bar CPU (per chart bar)

Data window

  • SymbolBINANCE:BTCUSDT
  • Timeframe30 min
  • From2025-01-01 00:00
  • To2026-08-25 11:00
  • Bars28,871

Source

  • Pine versionv5, converted to v6 by PyneComp
  • Script revisionv1
  • Licenseunspecified

SHA-2562c046a7e9c86c9f52c460abf396e2a5987852743cae42dfad558a0b257dbdbab

View on TradingView Permalink: SuperTrended Moving Averages Strategy

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