SuperTrend Multi Time Frame Long and Short Trading Strategy
SuperTrend Multi Time Frame Long and Short Trading Strategy by AIScripts, 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 plots change, so its results depend on data its bars could not have had and it is held apart from the accuracy score (lookahead).
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 plots 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 plots match TradingView 100%. Held apart from the accuracy score.
Accuracy
- Trades compared318 TV / 318 Pyne
- Whole-trade match100%
- Entry timing match100%
- Exit timing match100%
- Net profit (TV / Pyne)-196 / -196
- Plots compared17
- Plotted values compared159,426
- Identical to the bit83.39%
- Worst gap1.4 × 10⁻³ relative (~2 significant figures)
- Pearson correlation (min)0.999991
- Worst-matching plotTimeframe 2 CE
Run
- Bars executed29,744
- Secondary-feed bars3,788
- Total bars processed33,532
- Run time5.63 s CPU
- Per-bar time0.19 ms/bar CPU (per chart bar)
Data window
- SymbolBINANCE:BTCUSDT
- Timeframe30 min
- From2025-01-01 00:00
- To2026-09-12 15:30
- Bars29,744
- Security @ 1D3,314 bars
- Security @ 1W474 bars
Source
- Pine versionv5, converted to v6 by PyneComp
- Script revisionv1
- LicenseMPL-2.0
SHA-256e8904d71bf08f0d4a5acb0f68c742ac1f58b281ec0a816993d471be04f85d4ce
Measured 2026-09-27 · How this is measured · All scripts