logo
Developers

Dynamic Stop Loss Demo

Script from: TradingViewSwingTrend followingMomentumVolatility

This Pine Script tutorial demonstrates a Dynamic Stop Loss strategy that utilizes indicators like RSI for making trading decisions. Unlike traditional trailing stops, it conditions partial take-profits and full exits based on multiple factors, including ATR for dynamic stops. The script allows custom parameters, offers bug fixes, and improvements like optimized stop calculation and simplified quantity settings.

Audit verdict

Not rankedUpdated Jul 28, 2026

No reliable edge found

Its average result can't be told apart from chance, so it stays out of our rankings. The script itself passed our repainting audit.

2,124backtests3 markets
33robust scoreranked median 52
0.40p-valueranked median 0.24
0/84pass quality gatebacktests >15 trades

Audit details

How we decide whether a strategy enters our rankings. Read the methodology →

✓
Repainting audit
8 of 8 checks passed.
✓
Script availability
Open-source, still published on TradingView.
✕
Statistical edge
Average t-statistic 1.09 (p = 0.40), below the median of 1.98 (p = 0.24) for ranked strategies.
✕
Quality gate
None of the 84 backtests with more than 15 trades passes our quality gate.
✕
Robust score
33/100, below the median of 52 for ranked strategies.

How its evidence compares

The t-statistic measures how far the average result sits from zero relative to its noise. Below about 2, it is within what random entries produce.

1.09
avg. t-statistic
1.98
median, ranked strategies

Best 5 of 2,124 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
SciSparc Ltd.
NASDAQ:SPRC
1D+473%20.661818%
Alpine Immune Sciences, Inc.
NASDAQ:ALPN
2H+164%1.2935863%
Spectral AI, Inc.
NASDAQ:MDAI
1H+149%13.901718%
Newmont Corporation
NYSE:NEM
4H+135%1.4126819%
Gap, Inc. (The)
NYSE:GPS
1H+134%1.2176731%
⚠Selected after the fact: these are the best 5 of 2,124 runs, not what to expect from this strategy.

Is Dynamic Stop Loss Demo profitable?

Not reliably, based on our tests. Across 2,124 backtests, 0 of 84 with more than 15 trades pass our quality gate. The best result is +473% on SciSparc Ltd. (1D, 18 trades). On average, its results are statistically indistinguishable from chance (p = 0.40).

Strategies that passed our audit

Ranked strategies from the same family, ordered by robust score.

Explore the best Trading & TradingView strategies

Stop trading blindly. Explore quality-gated backtests and improve your trading skills with data.

Start for free