← All scripts

MACD Strategy with trailing ATR stop

by WunderTrading · Strategy · Pine Script v5 · 2,406 likes

Verifiedbit-exact

MACD Strategy with trailing ATR stop by WunderTrading, a Pine Script v5 strategy, converted with PyneComp and run with PyneCore on BINANCE:BTCUSDT 30m: 116,007 plotted values compared with TradingView, every one bit-identical; all 1,325 trades match TradingView's entry and exit timing.

Plot match vs TradingView100%

Accuracy

  • Trades compared1,325 TV / 1,325 Pyne
  • Whole-trade match100%
  • Entry timing match100%
  • Exit timing match100%
  • Net profit (TV / Pyne)-102 / -102
  • Plots compared5
  • Plotted values compared116,007
  • Identical to the bit100%
  • Worst gapsame double
  • Pearson correlation (min)1.000000

Run

  • Bars executed28,683
  • Run time3.02 s CPU
  • Per-bar time0.11 ms/bar CPU (per chart bar)

Data window

  • SymbolBINANCE:BTCUSDT
  • Timeframe30 min
  • From2025-01-01 00:00
  • To2026-08-21 13:00
  • Bars28,683

Source

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

SHA-256ac497af8d312464642abc83b39174cc219a19d460fe9b99e09abdc4ed0ea3c0f

View on TradingView Permalink: MACD Strategy with trailing ATR stop

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