logo
Developers

Pinbar trailing stop strategy

Script from: TradingViewSwingPrice actionTrend followingReversalCandlestickPattern

This strategy triggers trades based on the pinbar pattern, setting take profits and stop losses as multiples of the pinbar's size. Long or short positions are opened according to the pinbar's direction, with take profits placed 'X' times above its high point, and stop losses 'X' times below its low point. Detailed implementation and source code are available at the provided GitHub repository.

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.

1,665backtests3 markets
36robust scoreranked median 52
0.46p-valueranked median 0.24
2/102pass 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 0.88 (p = 0.46), below the median of 1.98 (p = 0.24) for ranked strategies.
✓
Quality gate
2 of 102 backtests with more than 15 trades pass our quality gate.
✕
Robust score
36/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.

0.88
avg. t-statistic
1.98
median, ranked strategies

Best 5 of 1,665 backtests

Shown for transparency.

SymbolTimeframeNet profitProfit factorTradesMax drawdown
Transocean Ltd (Switzerland)
NYSE:RIG
4H+401%3.015217%
FTX Token / TetherUS
BINANCE:FTTUSDT
4H+173%1.1121073%
Renault
EURONEXT:RNO
4H+149%1.999817%
Litecoin / TetherUS
BINANCE:LTCUSDT
4H+122%1.1032162%
Coinbase Global, Inc.
NASDAQ:COIN
2H+101%1.2811452%
⚠Selected after the fact: these are the best 5 of 1,665 runs, not what to expect from this strategy.

Is Pinbar trailing stop strategy profitable?

Not reliably, based on our tests. Across 1,665 backtests, 2 of 102 with more than 15 trades pass our quality gate. The best result is +401% on Transocean Ltd (Switzerland) (4H, 52 trades). On average, its results are statistically indistinguishable from chance (p = 0.46).

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