ATR Trailing Stop Line

ATR Trailing Stop Line is a free indicator by DinexSpace for MT5 and TradingView. An ATR-based trailing stop line that follows price and flips colour when the trend reverses.

Download .zipDetailed installation guide21.6 KB · 8 files · no sign-up

What ATR Trailing Stop Line does

ATR Trailing Stop Line is a free indicator by DinexSpace for MT5 and TradingView. An ATR-based trailing stop line that follows price and flips colour when the trend reverses.

Enable JavaScript to see the chart.

Chart powered by TradingView Lightweight Charts™ (Apache-2.0 license). tradingview.com

The candles and indicator lines above come straight from the MT5 version running in the Strategy Tester (XAUUSD H1); nothing is recalculated in the browser. Press ▶ to replay bar by bar.

MT5 version

ATR Trailing Stop Line draws where a volatility-based trailing stop would sit. For a long position the line stays a fixed number of ATRs below the highest point reached. For a short position it stays above the lowest point. The line only moves in the position's favour and never moves back.

TradingView version

ATR Trailing Stop Line draws where a volatility-based trailing stop would sit. For a long position the line stays a fixed number of ATRs below the highest point reached. For a short position it stays above the lowest point. The line only moves in the position's favour and never moves back.

When to use it

Use it to ride a trend and know when to get out.

Features and modes

ATR Trailing Stop Line has 7 documented features, listed below.

MT5 version

How it works

  • ATR (Average True Range, Wilder's smoothing) measures the typical bar range. The line sits a chosen multiple of it (3 by default) away from price.
  • On each bar the line is pulled up (long side) or down (short side) when price makes progress, and stays where it is otherwise.
  • When price closes beyond the line (or trades through it, if you choose the wick rule), the line is hit and restarts. In Auto mode it restarts on the other side of price. In Long only or Short only mode it restarts on the same side.
  • A one-bar gap marks each restart so old and new segments are not joined.

TradingView version

How it works

  • ATR (Average True Range, Wilder's smoothing) measures the typical bar range. The line sits a chosen multiple of it (3 by default) away from price.
  • On each bar the line is pulled up (long side) or down (short side) when price makes progress, and stays where it is otherwise.
  • When price closes beyond the line (or trades through it, if you choose "Wick"), the line is hit and restarts. In Auto mode it restarts on the other side of price. In Long only or Short only mode it restarts on the same side from the current bar.
  • A small gap marks each restart so old and new segments are not joined.
  • The line below price uses one colour and the line above price another.

Parameters

ATR Trailing Stop Line has 5 inputs in the MT5 version and 8 in the TradingView version; every input and its default is listed below.

MT5 version

  • Position side (Auto, Long only, Short only), ATR length, ATR multiple, trail from highs/lows or closes, hit rule (close or wick).
  • Colours and widths can be changed on the Colors tab.

TradingView version

  • Trailing stop: position side (Auto, Long only, Short only), ATR length, ATR multiple, trail from highs/lows or closes, hit rule (close or wick).
  • Display: colours and width.
ATR Trailing Stop Line inputs – MT5 version
InputDefaultLabel in MT5
InpSideSIDE_AUTOPosition side
InpAtrLen14ATR length (Wilder)
InpMult3.0ATR multiple
InpUseHLtrueTrail from highs/lows (false = closes)
InpHitHIT_CLOSELine is hit by
ATR Trailing Stop Line inputs – TradingView version
InputDefault
Trailing stop
Position side"Auto (switch side when hit)"
ATR length14
ATR multiple3.0
Trail from highs/lows (off = from closes)true
Line is hit by"Close"
Display
Line below priceC_GREEN
Line above priceC_AQUA
Width2

Signals

ATR Trailing Stop Line does not generate buy or sell signals. It is an analysis tool: you read what it plots and make your own decisions.

Alerts

Yes. ATR Trailing Stop Line has built-in alerts: TradingView – alert conditions for Create Alert.

"Trailing line hit" fires when price reaches the line.

Buffers for Expert Advisors

Yes. The MT5 version of ATR Trailing Stop Line exposes its plots as indicator buffers that an EA can read with iCustom and CopyBuffer: Stop line (below price), Stop line (above price).

  • Both lines are indicator buffers, so they appear in the Data Window. An EA of your own can read them with iCustom to manage its stops.

Timeframes and markets

ATR Trailing Stop Line sets no timeframe limit in its code: it runs on any chart timeframe and on the symbol of the chart it is attached to.

Limitations

ATR Trailing Stop Line is an analysis tool, not a trading system. Its documented limitations are listed below.

MT5 version

  • The line is a reference for managing an open position. It does not decide when to enter a trade.
  • Values on the current bar can change until the bar closes.
  • ATR describes past ranges only; gaps can jump past the line.

The indicator never places, changes or closes orders, gives no entry signals and uses no DLLs or web requests.

TradingView version

  • The line is a reference for managing an open position. It does not decide when to enter a trade, and it places no orders.
  • Values on the current bar can change until the bar closes.
  • ATR describes past ranges only; gaps can jump past the line.

This script is an analysis aid only. It does not give trade signals or investment advice.

Pine Script code

Paste the whole script into the Pine Editor on TradingView.

atr_trailing_stop.pine · 61 lines
//@version=6
// DinexSpace | ATR Trailing Stop Line
// Draws a volatility-based trailing stop line: a fixed number of ATRs below the highest point (for a long
// position) or above the lowest point (for a short position), that only moves in the trade's favour.
// Use it as a reference for where a trailing stop would sit. It draws a line only: no entries, no orders.
// Free and open source. License: MIT. (c) 2026 DinexSpace
indicator("DinexSpace | ATR Trailing Stop Line", shorttitle = "DNX ATR Trail", overlay = true)

// ===== Brand colours =====
C_GREEN = #00FF7F   // SpringGreen: stop below price (long side)
C_AQUA  = #00FFFF   // Aqua: stop above price (short side)

// ===== Inputs =====
GRP_S  = "Trailing stop"
side   = input.string("Auto (switch side when hit)", "Position side", options = ["Auto (switch side when hit)", "Long only", "Short only"], group = GRP_S)
atrLen = input.int(14, "ATR length", minval = 1, maxval = 500, group = GRP_S)
mult   = input.float(3.0, "ATR multiple", minval = 0.1, step = 0.1, group = GRP_S)
useHL  = input.bool(true, "Trail from highs/lows (off = from closes)", group = GRP_S)
hitBy  = input.string("Close", "Line is hit by", options = ["Close", "Wick"], group = GRP_S)

GRP_D  = "Display"
colL   = input.color(C_GREEN, "Line below price", group = GRP_D)
colS   = input.color(C_AQUA, "Line above price", group = GRP_D)
width  = input.int(2, "Width", minval = 1, maxval = 4, group = GRP_D)

float atr = ta.atr(atrLen)
float hiSrc = useHL ? high : close
float loSrc = useHL ? low : close

var int   dir  = 0        // 1 = line below price, -1 = line above price
var float stop = na
bool hit = false

if not na(atr)
    float longStop  = hiSrc - mult * atr
    float shortStop = loSrc + mult * atr
    if dir == 0
        dir  := side == "Short only" ? -1 : 1
        stop := dir == 1 ? longStop : shortStop
    else if dir == 1
        bool brk = (hitBy == "Close" ? close : low) < stop
        if brk
            hit  := true
            dir  := side == "Long only" ? 1 : -1
            stop := dir == 1 ? longStop : shortStop
        else
            stop := math.max(stop, longStop)
    else
        bool brk = (hitBy == "Close" ? close : high) > stop
        if brk
            hit  := true
            dir  := side == "Short only" ? -1 : 1
            stop := dir == 1 ? longStop : shortStop
        else
            stop := math.min(stop, shortStop)

// Break the line when it restarts so old and new segments are not joined.
plot(dir == 1 and not hit ? stop : na, "Stop line (below price)", color = colL, linewidth = width, style = plot.style_linebr)
plot(dir == -1 and not hit ? stop : na, "Stop line (above price)", color = colS, linewidth = width, style = plot.style_linebr)

alertcondition(hit, "Trailing line hit", "{{ticker}}: price reached the ATR trailing stop line")

ATR Trailing Stop Line FAQ

ATR Trailing Stop Line is free, runs on MT5 and TradingView and does not place trades.

Is ATR Trailing Stop Line free?

Yes. ATR Trailing Stop Line is free to download from this page with no sign-up, and the download includes the full source code.

Which platforms does ATR Trailing Stop Line run on?

ATR Trailing Stop Line is available for MetaTrader 5 (MQL5) and TradingView (Pine Script v6).

Does ATR Trailing Stop Line give buy and sell signals?

ATR Trailing Stop Line does not generate buy or sell signals. It is an analysis tool: you read what it plots and make your own decisions.

Does ATR Trailing Stop Line have alerts?

Yes. ATR Trailing Stop Line has built-in alerts: TradingView – alert conditions for Create Alert.

Can an EA read ATR Trailing Stop Line?

Yes. The MT5 version of ATR Trailing Stop Line exposes its plots as indicator buffers that an EA can read with iCustom and CopyBuffer: Stop line (below price), Stop line (above price).

Which timeframes does ATR Trailing Stop Line work on?

ATR Trailing Stop Line sets no timeframe limit in its code: it runs on any chart timeframe and on the symbol of the chart it is attached to.

Does ATR Trailing Stop Line place trades?

No. It is a read-only indicator: it only reads market data and shows the result on the chart or writes it to a file. The source contains no calls that open, close or modify orders.

How do I install ATR Trailing Stop Line?

Download the .zip and follow the step-by-step installation guide for MT5 and TradingView: https://indicators.dinexspace.com/install-guide/

Measured win rates (backtest)

Measured (signal-by-signal check against MT5: in progress)

Out of sample on H1: 1 of 21 symbols above break-even after costs.

Swipe sideways to see every timeframe.

Out of sample: 2024-01-01 to 2026-11-16
SymbolM15H1H4D1
AUDUSD43.2% (n=2437; break-even 61.2%)47.9% (n=580; break-even 55.2%)50.7% (n=136; break-even 52.5%)40.6% (n=32; break-even 51.1%)
AUS20043.0% (n=604; break-even 64.3%)48.9% (n=183; break-even 56.3%)49.4% (n=85; break-even 53.9%)43.3% (n=30; break-even 52.3%)
BNB–49.0% (n=787; break-even 57.6%)49.7% (n=187; break-even 53.6%)–
BTCUSD48.7% (n=3298; break-even 53.8%)50.6% (n=803; break-even 51.6%)54.1% (n=194; break-even 50.7%)50.0% (n=32; break-even 50.3%)
ETHUSD46.9% (n=3222; break-even 57.5%)48.1% (n=798; break-even 53.4%)48.7% (n=191; break-even 51.5%)37.5% (n=32; break-even 50.5%)
EURUSD44.8% (n=2461; break-even 57.9%)43.8% (n=637; break-even 53.6%)51.2% (n=162; break-even 51.8%)67.7% (n=31; break-even 50.8%)
GBPUSD45.0% (n=2475; break-even 58.3%)41.8% (n=639; break-even 53.8%)47.8% (n=161; break-even 51.8%)66.7% (n=31; break-even 50.8%)
GER4048.0% (n=1921; break-even 53.5%)51.1% (n=479; break-even 51.7%)50.3% (n=151; break-even 50.8%)–
JP22547.6% (n=2036; break-even 57.2%)52.1% (n=524; break-even 53.3%)51.2% (n=130; break-even 51.5%)–
NAS10049.7% (n=2438; break-even 52.0%)50.9% (n=627; break-even 50.8%)48.9% (n=189; break-even 50.4%)50.0% (n=30; break-even 50.2%)
NZDUSD41.8% (n=2450; break-even 65.6%)44.4% (n=594; break-even 57.5%)50.7% (n=150; break-even 53.3%)–
SOLUSD34.7% (n=3227; break-even 83.8%)41.2% (n=820; break-even 64.8%)46.8% (n=203; break-even 57.7%)62.5% (n=32; break-even 51.5%)
UK10043.7% (n=2089; break-even 61.8%)46.3% (n=522; break-even 55.5%)45.1% (n=122; break-even 52.8%)–
US3047.9% (n=2478; break-even 52.7%)49.1% (n=689; break-even 51.2%)47.4% (n=195; break-even 50.5%)–
US50046.4% (n=2506; break-even 55.3%)48.4% (n=646; break-even 52.1%)50.0% (n=184; break-even 51.0%)–
USDCAD41.5% (n=2534; break-even 62.2%)48.1% (n=619; break-even 55.6%)55.5% (n=146; break-even 52.7%)46.7% (n=30; break-even 51.2%)
USDCHF42.1% (n=2422; break-even 63.4%)45.2% (n=588; break-even 56.0%)50.8% (n=179; break-even 52.8%)41.9% (n=31; break-even 51.2%)
USDJPY43.9% (n=2380; break-even 58.6%)46.4% (n=604; break-even 53.9%)44.6% (n=166; break-even 51.8%)–
WTI47.3% (n=2510; break-even 56.5%)47.6% (n=639; break-even 52.9%)43.5% (n=170; break-even 51.5%)56.7% (n=31; break-even 50.5%)
XAGUSD45.7% (n=2302; break-even 57.9%)44.6% (n=598; break-even 53.7%)48.0% (n=152; break-even 51.8%)–
XAUUSD50.6% (n=2249; break-even 51.9%)44.5% (n=164; break-even 51.5%)measured up to 2024-10-1648.7% (n=152; break-even 50.4%)42.4% (n=34; break-even 50.2%)

No data: HK50, KOSPI

Swipe sideways to see every timeframe.

In sample: through 2023-12-31
SymbolM15H1H4D1
AUDUSD47.5% (n=909; break-even 57.0%)49.4% (n=2614; break-even 51.3%)51.2% (n=723; break-even 50.6%)54.0% (n=113; break-even 50.3%)
AUS20048.0% (n=1511; break-even 56.8%)50.0% (n=646; break-even 51.9%)46.5% (n=329; break-even 51.2%)51.4% (n=144; break-even 50.6%)
BNB–46.1% (n=1565; break-even 54.8%)50.1% (n=375; break-even 52.3%)45.0% (n=60; break-even 50.9%)
BTCUSD60.0% (n=30; break-even 50.8%)48.9% (n=397; break-even 51.1%)47.5% (n=99; break-even 50.6%)–
ETHUSD46.0% (n=37; break-even 62.6%)51.9% (n=389; break-even 52.4%)50.5% (n=105; break-even 51.2%)–
EURUSD43.9% (n=978; break-even 58.7%)50.0% (n=2731; break-even 51.5%)50.3% (n=746; break-even 50.8%)55.1% (n=127; break-even 50.2%)
GBPUSD47.1% (n=920; break-even 54.5%)49.8% (n=2730; break-even 51.1%)48.5% (n=705; break-even 50.5%)58.7% (n=133; break-even 50.2%)
GER4048.7% (n=1520; break-even 51.5%)47.1% (n=924; break-even 50.2%)48.3% (n=362; break-even 50.1%)52.9% (n=187; break-even 50.0%)
JP22549.7% (n=1419; break-even 52.5%)50.6% (n=701; break-even 50.7%)51.0% (n=290; break-even 50.2%)47.4% (n=154; break-even 50.0%)
NAS10048.1% (n=1127; break-even 52.0%)49.6% (n=1666; break-even 50.1%)51.9% (n=524; break-even 50.1%)50.3% (n=175; break-even 50.0%)
NZDUSD39.1% (n=930; break-even 61.8%)48.5% (n=2559; break-even 52.7%)49.2% (n=691; break-even 51.4%)51.9% (n=129; break-even 50.7%)
SOLUSD54.5% (n=33; break-even 50.0%)52.9% (n=399; break-even 50.6%)50.0% (n=90; break-even 50.1%)–
UK10044.8% (n=1562; break-even 53.4%)47.5% (n=1258; break-even 50.5%)51.5% (n=402; break-even 50.2%)44.1% (n=152; break-even 50.1%)
US3046.8% (n=1143; break-even 52.3%)51.5% (n=1580; break-even 50.2%)51.1% (n=501; break-even 50.1%)55.6% (n=153; break-even 50.0%)
US50046.1% (n=1141; break-even 54.7%)49.7% (n=1631; break-even 50.3%)51.2% (n=516; break-even 50.1%)51.5% (n=167; break-even 50.0%)
USDCAD39.8% (n=994; break-even 56.7%)48.3% (n=2722; break-even 51.1%)49.7% (n=720; break-even 50.6%)50.0% (n=128; break-even 50.3%)
USDCHF39.9% (n=1033; break-even 63.2%)47.8% (n=2641; break-even 51.8%)50.4% (n=677; break-even 50.9%)60.5% (n=134; break-even 50.4%)
USDJPY45.9% (n=924; break-even 57.0%)48.2% (n=2581; break-even 51.8%)52.1% (n=672; break-even 50.9%)49.2% (n=130; break-even 50.3%)
WTI45.8% (n=1167; break-even 54.0%)51.3% (n=1611; break-even 50.3%)50.4% (n=484; break-even 50.1%)50.3% (n=149; break-even 50.0%)
XAGUSD44.4% (n=1089; break-even 58.2%)42.7% (n=2594; break-even 59.8%)49.1% (n=684; break-even 55.0%)58.5% (n=123; break-even 52.0%)
XAUUSD48.8% (n=1030; break-even 52.6%)48.5% (n=2655; break-even 51.4%)52.7% (n=738; break-even 50.7%)48.1% (n=135; break-even 50.3%)

No data: HK50, KOSPI

Also measured: 1:2 and 1:3 TP win rates
Also measured: 1:2 and 1:3 TP win rates
Sample · symbol · timeframe1:21:3
Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · M1528.3%20.6%
Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · H131.9%24.3%
Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · H433.1%25.0%
Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · D128.1%20.0%
Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · M1530.5%23.5%
Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · H134.6%27.5%
Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · H436.5%25.0%
Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · D126.7%20.0%
Out of sample: 2024-01-01 to 2026-11-16 · BNB · H133.3%24.9%
Out of sample: 2024-01-01 to 2026-11-16 · BNB · H434.8%26.9%
Out of sample: 2024-01-01 to 2026-11-16 · BTCUSD · M1533.1%24.8%
Out of sample: 2024-01-01 to 2026-11-16 · BTCUSD · H132.1%24.8%
Out of sample: 2024-01-01 to 2026-11-16 · BTCUSD · H434.5%24.7%
Out of sample: 2024-01-01 to 2026-11-16 · BTCUSD · D137.5%31.2%
Out of sample: 2024-01-01 to 2026-11-16 · ETHUSD · M1531.8%23.8%
Out of sample: 2024-01-01 to 2026-11-16 · ETHUSD · H132.3%24.7%
Out of sample: 2024-01-01 to 2026-11-16 · ETHUSD · H434.0%25.7%
Out of sample: 2024-01-01 to 2026-11-16 · ETHUSD · D128.1%28.1%
Out of sample: 2024-01-01 to 2026-11-16 · EURUSD · M1530.2%21.7%
Out of sample: 2024-01-01 to 2026-11-16 · EURUSD · H129.5%23.1%
Out of sample: 2024-01-01 to 2026-11-16 · EURUSD · H438.3%28.4%
Out of sample: 2024-01-01 to 2026-11-16 · EURUSD · D135.5%29.0%
Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · M1530.0%22.3%
Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · H127.5%20.7%
Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · H431.1%24.8%
Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · D146.7%23.3%
Out of sample: 2024-01-01 to 2026-11-16 · GER40 · M1532.8%25.8%
Out of sample: 2024-01-01 to 2026-11-16 · GER40 · H136.1%27.2%
Out of sample: 2024-01-01 to 2026-11-16 · GER40 · H430.0%21.3%
Out of sample: 2024-01-01 to 2026-11-16 · JP225 · M1533.6%25.9%
Out of sample: 2024-01-01 to 2026-11-16 · JP225 · H133.0%24.1%
Out of sample: 2024-01-01 to 2026-11-16 · JP225 · H438.8%26.4%
Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · M1533.7%25.7%
Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · H132.6%25.1%
Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · H433.5%24.1%
Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · D140.0%23.3%
Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · M1527.8%21.1%
Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · H129.5%22.6%
Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · H434.0%26.7%
Out of sample: 2024-01-01 to 2026-11-16 · SOLUSD · M1526.3%21.0%
Out of sample: 2024-01-01 to 2026-11-16 · SOLUSD · H128.9%22.5%
Out of sample: 2024-01-01 to 2026-11-16 · SOLUSD · H429.6%24.6%
Out of sample: 2024-01-01 to 2026-11-16 · SOLUSD · D143.8%28.1%
Out of sample: 2024-01-01 to 2026-11-16 · UK100 · M1528.1%20.9%
Out of sample: 2024-01-01 to 2026-11-16 · UK100 · H130.9%22.5%
Out of sample: 2024-01-01 to 2026-11-16 · UK100 · H429.8%21.7%
Out of sample: 2024-01-01 to 2026-11-16 · US30 · M1532.4%24.9%
Out of sample: 2024-01-01 to 2026-11-16 · US30 · H134.2%24.1%
Out of sample: 2024-01-01 to 2026-11-16 · US30 · H430.4%23.8%
Out of sample: 2024-01-01 to 2026-11-16 · US500 · M1532.4%24.0%
Out of sample: 2024-01-01 to 2026-11-16 · US500 · H132.4%25.6%
Out of sample: 2024-01-01 to 2026-11-16 · US500 · H433.9%25.7%
Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · M1528.2%20.4%
Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · H130.4%22.9%
Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · H439.0%24.7%
Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · D137.9%27.6%
Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · M1527.9%20.3%
Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · H130.8%22.8%
Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · H436.3%28.5%
Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · D123.3%23.3%
Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · M1529.0%21.7%
Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · H131.4%23.5%
Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · H428.9%22.4%
Out of sample: 2024-01-01 to 2026-11-16 · WTI · M1531.9%23.7%
Out of sample: 2024-01-01 to 2026-11-16 · WTI · H132.9%25.2%
Out of sample: 2024-01-01 to 2026-11-16 · WTI · H429.6%23.9%
Out of sample: 2024-01-01 to 2026-11-16 · WTI · D140.0%31.0%
Out of sample: 2024-01-01 to 2026-11-16 · XAGUSD · M1530.9%22.9%
Out of sample: 2024-01-01 to 2026-11-16 · XAGUSD · H131.6%24.6%
Out of sample: 2024-01-01 to 2026-11-16 · XAGUSD · H431.6%23.7%
Out of sample: 2024-01-01 to 2026-11-16 · XAUUSD · M1533.8%25.8%
Out of sample: 2024-01-01 to 2026-11-16 · XAUUSD · H131.7%19.5%
Out of sample: 2024-01-01 to 2026-11-16 · XAUUSD · H442.1%30.5%
Out of sample: 2024-01-01 to 2026-11-16 · XAUUSD · D127.3%24.2%
In sample: through 2023-12-31 · AUDUSD · M1531.4%24.6%
In sample: through 2023-12-31 · AUDUSD · H132.5%24.9%
In sample: through 2023-12-31 · AUDUSD · H433.9%25.3%
In sample: through 2023-12-31 · AUDUSD · D138.9%28.3%
In sample: through 2023-12-31 · AUS200 · M1534.8%26.8%
In sample: through 2023-12-31 · AUS200 · H134.1%25.2%
In sample: through 2023-12-31 · AUS200 · H432.8%24.6%
In sample: through 2023-12-31 · AUS200 · D133.3%25.7%
In sample: through 2023-12-31 · BNB · H131.4%23.5%
In sample: through 2023-12-31 · BNB · H436.3%25.9%
In sample: through 2023-12-31 · BNB · D130.5%25.4%
In sample: through 2023-12-31 · BTCUSD · M1540.0%27.6%
In sample: through 2023-12-31 · BTCUSD · H130.5%21.7%
In sample: through 2023-12-31 · BTCUSD · H433.3%26.5%
In sample: through 2023-12-31 · ETHUSD · M1537.8%18.9%
In sample: through 2023-12-31 · ETHUSD · H135.0%24.3%
In sample: through 2023-12-31 · ETHUSD · H434.3%26.9%
In sample: through 2023-12-31 · EURUSD · M1527.8%20.9%
In sample: through 2023-12-31 · EURUSD · H133.7%26.4%
In sample: through 2023-12-31 · EURUSD · H434.6%25.4%
In sample: through 2023-12-31 · EURUSD · D139.4%29.9%
In sample: through 2023-12-31 · GBPUSD · M1531.5%22.0%
In sample: through 2023-12-31 · GBPUSD · H134.9%27.2%
In sample: through 2023-12-31 · GBPUSD · H433.8%25.0%
In sample: through 2023-12-31 · GBPUSD · D136.8%26.3%
In sample: through 2023-12-31 · GER40 · M1532.8%24.6%
In sample: through 2023-12-31 · GER40 · H133.4%24.6%
In sample: through 2023-12-31 · GER40 · H433.4%23.5%
In sample: through 2023-12-31 · GER40 · D136.4%25.7%
In sample: through 2023-12-31 · JP225 · M1536.0%27.8%
In sample: through 2023-12-31 · JP225 · H137.5%28.1%
In sample: through 2023-12-31 · JP225 · H436.2%24.5%
In sample: through 2023-12-31 · JP225 · D133.1%22.7%
In sample: through 2023-12-31 · NAS100 · M1533.7%26.5%
In sample: through 2023-12-31 · NAS100 · H132.0%25.3%
In sample: through 2023-12-31 · NAS100 · H433.8%27.5%
In sample: through 2023-12-31 · NAS100 · D130.9%26.3%
In sample: through 2023-12-31 · NZDUSD · M1525.6%18.5%
In sample: through 2023-12-31 · NZDUSD · H133.7%25.4%
In sample: through 2023-12-31 · NZDUSD · H432.4%23.9%
In sample: through 2023-12-31 · NZDUSD · D132.6%24.8%
In sample: through 2023-12-31 · SOLUSD · M1545.5%21.2%
In sample: through 2023-12-31 · SOLUSD · H132.7%26.7%
In sample: through 2023-12-31 · SOLUSD · H428.9%26.7%
In sample: through 2023-12-31 · UK100 · M1529.3%21.9%
In sample: through 2023-12-31 · UK100 · H131.5%22.8%
In sample: through 2023-12-31 · UK100 · H434.3%27.4%
In sample: through 2023-12-31 · UK100 · D127.6%17.8%
In sample: through 2023-12-31 · US30 · M1531.9%23.9%
In sample: through 2023-12-31 · US30 · H134.9%25.8%
In sample: through 2023-12-31 · US30 · H436.0%28.0%
In sample: through 2023-12-31 · US30 · D137.5%30.9%
In sample: through 2023-12-31 · US500 · M1530.7%23.2%
In sample: through 2023-12-31 · US500 · H133.4%25.7%
In sample: through 2023-12-31 · US500 · H437.1%27.6%
In sample: through 2023-12-31 · US500 · D134.3%27.7%
In sample: through 2023-12-31 · USDCAD · M1526.2%20.4%
In sample: through 2023-12-31 · USDCAD · H131.1%23.0%
In sample: through 2023-12-31 · USDCAD · H432.4%24.4%
In sample: through 2023-12-31 · USDCAD · D132.0%23.4%
In sample: through 2023-12-31 · USDCHF · M1525.6%19.3%
In sample: through 2023-12-31 · USDCHF · H131.4%23.5%
In sample: through 2023-12-31 · USDCHF · H435.8%26.6%
In sample: through 2023-12-31 · USDCHF · D136.6%27.6%
In sample: through 2023-12-31 · USDJPY · M1530.5%22.5%
In sample: through 2023-12-31 · USDJPY · H133.6%26.0%
In sample: through 2023-12-31 · USDJPY · H432.9%24.9%
In sample: through 2023-12-31 · USDJPY · D128.5%21.5%
In sample: through 2023-12-31 · WTI · M1531.0%23.4%
In sample: through 2023-12-31 · WTI · H134.1%26.1%
In sample: through 2023-12-31 · WTI · H435.7%26.9%
In sample: through 2023-12-31 · WTI · D137.6%24.8%
In sample: through 2023-12-31 · XAGUSD · M1529.2%21.4%
In sample: through 2023-12-31 · XAGUSD · H128.8%22.5%
In sample: through 2023-12-31 · XAGUSD · H429.5%22.7%
In sample: through 2023-12-31 · XAGUSD · D142.3%27.6%
In sample: through 2023-12-31 · XAUUSD · M1532.1%23.8%
In sample: through 2023-12-31 · XAUUSD · H134.0%25.8%
In sample: through 2023-12-31 · XAUUSD · H435.4%26.6%
In sample: through 2023-12-31 · XAUUSD · D134.1%25.9%

What counts as a win

  • W1: take profit before stop loss. Stop loss = 1.5 × ATR(14) Wilder of the signal bar; shown take profit = 1 × stop loss (1:1). Entry is at the signal bar close. Buy pays the spread at entry; sell pays it at exit. If stop loss and take profit occur in the same M15 bar, count a loss. No result within 200 bars is not counted.
  • W2 direction after 5, 10 and 20 bars is measured too.
  • Default inputs require confluence ≥ 4/7.
  • In sample: first bar to 2023-12-31; out of sample: 2024-01-01 to 2026-11-16.
  • Costs: Real spread of an ECN-type MT5 account, no commission.
  • Data source: MT5 tick data (BNB: Binance spot).
  • Cells with fewer than 30 signals show –.

TradingView H4/D1 bars may follow the exchange time zone of the TradingView symbol, not the MT5 server time (UTC) used for the measurement; sessions and the H4 trend may differ on the Pine version. Same signals on TradingView not checked yet.

Arrows show measured rates for each market.

What this version adds

  • Standard ATR Trailing Stop versions on MT5 or TradingView do not show a measured win rate for their signals.
  • Every arrow shows its measured win rate, e.g. "Buy 1:1 49% (n=1328)" on XAUUSD H1 buys. Measured on 20 MT5 symbols + BNB, M15 to D1, in and out of sample.
  • Signals on closed bars only; 7-factor confluence score, by default only signals scoring 4/7 or more.
  • ATR-based SL/TP suggestions, per-bar odds, standard buffers for EAs, one alert per closed bar.
  • On gold: GII panel and an optional GII side filter (off by default: GII is not validated yet).

Past test statistics are not a promise of future results.

More in this category

All Trend indicators

Aroon

Trend · Indicator

Counts the bars since the most recent highest high and lowest low. Use it to tell whether a trend is just starting or running out of steam.

FreeMT5Measured

Heikin Ashi Smoothed

Trend · Indicator

Smoothed Heikin Ashi candles that filter out much of the noise. Use them to see whether a trend is continuing or losing steam.

FreeMT5TradingViewMeasured

Hull MA

Trend · Indicator

A smooth Hull moving average that changes colour with its slope. Use it when you want a fast-reacting moving average with little noise.

FreeMT5Measured