The short version. This is a TradingView OTT strategy backtest: Optimized Trend Tracker STRATEGY & SCREENER by KivancOzbilgic, built on Anıl Özekşi's OTT. I ported it line for line to Python and ran the default settings on Exness tick data with real spread and commission: gold, four forex pairs and the S&P 500 from 2020 to 2026, Bitcoin from 2024, and gold and forex back to 2004 on Dukascopy data (the S&P 500 back to 2012).

  • Gold since 2020 looks fine. PF 1.17 on M15 (2,319 trades, +3,034 USD per 0.01 lot, max drawdown 634), 1.20 on H1, 1.22 on H4.
  • But 83% of the gold M15 profit came in 2026. The five years from 2020 to 2024 added up to +31.
  • And from 2004 to 2019 the same setup lost. Gold M15: PF 0.92, −153% summed over 5,274 trades, while gold itself rose 266%.
  • Forex lost. EURUSD, GBPUSD and NZDUSD: PF 0.77 to 1.00 on every timeframe from M5 to H4.
  • The screener table isn't the strategy. The "Confirmed Reversal" list on your chart comes from a different formula. It pointed the same way as the strategy's trade on 74–86% of bars and flipped 3 to 10 times less often.

My verdict: OTT with the defaults is a fast trend follower that made money on gold mostly in one year. I didn't find an edge.

What is the OTT strategy on TradingView?

It's a fast moving average that flips the trade when it crosses a trailing line set 1.4% away from itself. Optimized Trend Tracker STRATEGY & SCREENER was published by KivancOzbilgic on 24 December 2020 (Pine v4) and had 6,884 boosts when I checked in November 2026. The OTT idea is Anıl Özekşi's, made for Turkish stocks. The script is three things at once: an OTT indicator, a backtestable strategy, and a screener that labels up to 20 tickers (EURUSD, XAUUSD, AMZN, TSLA and BTCUSDT among the defaults) as uptrend, downtrend or reversing.

Here's the trading part with the defaults (OTT period 2, OTT percent 1.4, VAR average):

MAvg = getMA(src, length)            // VAR: EMA scaled by |CMO(9)|
fark = MAvg * percent * 0.01
longStop  := MAvg > longStopPrev  ? max(longStop, longStopPrev)   : longStop
shortStop := MAvg < shortStopPrev ? min(shortStop, shortStopPrev) : shortStop
MT  = dir == 1 ? longStop : shortStop
OTT = MAvg > MT ? MT * (200 + percent) / 200 : MT * (200 - percent) / 200
buySignalk  = crossover(MAvg, OTT[2])
sellSignallk = crossunder(MAvg, OTT[2])

In plain words:

  1. The support line is VAR(2), a 2-bar Variable Index Dynamic Average. It's an EMA whose speed depends on the 9-bar Chande Momentum Oscillator. With a period of 2 it hugs price closely.
  2. The trailing stop sits 1.4% below that line in an uptrend and only moves up. In a downtrend it sits 1.4% above and only moves down. OTT is that stop nudged 0.7% toward price.
  3. The signals fire when the support line crosses the OTT value from two bars ago. The strategy is always in the market and reverses on each signal. No stop loss, no take profit.

If you've read my TOTT backtest, this is the same engine with one line instead of two and much faster defaults (period 2 instead of 40, 1.4% instead of 1%). That makes a big difference in trade count: 2,319 trades on gold M15 here, against 333 for TOTT.

OTT strategy on XAUUSD H1, 15 Sep to 7 Nov 2025, default settings: VAR(2) support line in blue and OTT line in purple during a rally from 3,640 to 4,380 and the drop after, 26 buy and sell arrows, with two strips below comparing the strategy's position and the screener's trend, same direction on 79% of bars, Exness tick data

Look at the strips at the bottom first. From 15 September to 9 October gold went from about 3,640 to over 4,000 without a real pullback. The screener showed "uptrend" the whole time. The strategy reversed to short seven times in that stretch: 13 trades, −56 USD per 0.01 lot in total, with the shorts losing 219. Then on the sharp drop after 20 October both of them caught some of it.

Is the screener the same signal as the strategy?

No, and I think this is the most useful thing to know before you trust the screener. The author's description lists three ways to trade OTT:

  1. Buy when price is above OTT, sell when below.
  2. Buy when the support line crosses over OTT, sell when it crosses under.
  3. Buy when OTT turns green, sell when it turns red.

The description says the screener "only explores and screens for the 2nd signal type", and the strategy trades type 2. But the screener's code doesn't call the same calculation. It runs its own function, OTTs(), which is a SuperTrend-style trend on the support line without the 0.7% shift and the two-bar delay. In practice it behaves almost exactly like type 3 (colour change): on every market I tested the two produced the same number of trades, give or take four.

So when the screener says "Confirmed Reversal: XAUUSD", the strategy you backtested may not have reversed, or may have reversed three times already. Across seven markets and three timeframes:

Same direction as strategy Strategy reversals Screener reversals
Gold M15 76% 2,312 489
Gold H1 77% 977 321
EURUSD H1 76% 614 102
US500 H1 83% 882 367
BTCUSD H1 (2024–26) 83% 873 492

Exness ticks, January 2020 to September 2026 (BTC January 2024 to October 2026).

The strategy tester can't tell you anything about the screener's calls. I tested those separately below.

Does OTT repaint?

No. The strategy decides at the bar close and fills at the next bar's open. OTT[2] looks back, not forward. The screener's security() calls use the chart's own timeframe and the "Confirmed Reversal" list reads the previous bar, so that part doesn't repaint either. The "Potential Reversal" list does change during the bar, and the description says so. VAR starts at zero on the first bar of the chart; I started it at the first price and skipped 100 bars. Starting from zero changed nothing on M15 to H4.

How I tested it

  • Port: Python, line for line, reusing my TOTT port with the twin coefficient set to 0, which is exactly OTT. Signals at the bar close, fills at the next bar's open, stop-and-reverse like strategy.entry.
  • Data: Exness Raw Spread tick archives for XAUUSD, EURUSD, GBPUSD, USDJPY, NZDUSD and US500, January 2020 to September 2026. BTCUSD from January 2024 to October 2026.
  • Costs: buys fill at the real ask on the first tick of the bar, sells at the bid, plus 3.5 USD per lot per side on forex and gold, 1 USD per BTC per side, none on US500. Swap gets its own section.
  • Older data: Dukascopy M1 bars via Tickstory for gold, EURUSD, GBPUSD, USDJPY and NZDUSD from 2004 and the S&P 500 from 2012, spread from the data, gold swap scaled to the price of the time.
  • Size: fixed, no compounding. Gold in USD per 0.01 lot (one ounce), forex in pips, US500 in index points, Bitcoin in USD per 1 BTC.

Is the TradingView backtest accurate?

Less than for slower scripts. The strategy has no commission set, and TradingView doesn't model spread or swap. With VAR 2 the trade count is high enough that costs bite:

Default settings, long + short Trades PF, no costs PF, real costs
Gold M15 2,319 1.19 1.17
EURUSD M5 2,291 0.87 0.81
NZDUSD M5 3,377 0.92 0.78
BTCUSD M5 5,570 1.02 0.96

On Bitcoin M5 that's the difference between +25,336 and −50,431 USD per BTC.

The results

Profit factor after spread and commission, default settings:

OTT strategy profit factor after costs by symbol and timeframe, long plus short and long only, XAUUSD USDJPY US500 EURUSD GBPUSD NZDUSD BTCUSD, M5 to D1, with trade counts, Exness Raw Spread ticks 2020 to 2026

The D1 column has 34 to 107 trades per cell, so treat it carefully. USDJPY D1 (1.75) is 68 trades.

Gold (XAUUSD Raw Spread), 29 Jan 2020 – Sep 2026, before swap:

Timeframe Direction Trades Win rate PF Net Max drawdown
M5 long + short 4,477 17.3% 1.06 +1,556 1,028
M15 long + short 2,319 23.0% 1.17 +3,034 634
H1 long + short 978 30.3% 1.20 +2,503 1,147
H4 long + short 414 34.5% 1.22 +1,692 1,243
M15 long only 1,159 24.7% 1.31 +2,809 475
H1 long only 489 32.7% 1.42 +2,546 1,122
Buy and hold 1 +2,588 1,629

Net and drawdown in USD per 0.01 lot, drawdown on open equity. "Long only" isn't a script setting; I added it to see where the money came from.

On paper gold M15 beat buy and hold with less than half the drawdown. The long side made +2,809 of the +3,034. Here's when it made it:

OTT strategy equity on XAUUSD M15 long plus short versus buy and hold gold, January 2020 to September 2026, and net profit by exit year: 2020 +15, 2021 −184, 2022 −77, 2023 +340, 2024 −62, 2025 +478, 2026 +2,525, Exness Raw Spread ticks, costs included, swap not included

Five years of nothing, then 2026. Gold went above 5,000 in January and fell hard on 30 January, and a fast stop-and-reverse system catches big swings in both directions. Strip out 2026 and gold M15 is flat.

Forex, US500, Bitcoin and USDJPY, long + short, after costs:

M5 M15 H1 H4
EURUSD 0.81 0.79 0.83 0.94
GBPUSD 0.81 0.83 0.99 1.00
NZDUSD 0.78 0.81 0.89 0.77
USDJPY 0.92 0.94 1.01 1.08
US500 1.00 1.01 1.06 0.96
BTCUSD (2024–26) 0.96 0.94 1.14 1.03

US500, USDJPY and Bitcoin all rose over the period, and their long sides made money while the shorts lost on every timeframe. Long only, US500 H1 made PF 1.28 and +2,777 points. Buy and hold made +4,437.

Is the gold result real?

It passed the random-timing test on M15, then failed on older data.

  • Random timing. I slid the strategy's own long/short pattern to a random point in time, 300 times, keeping every trade's length. Gold M15 beat 97% of the random copies (p = 0.033). Gold H1 was 0.08, H4 0.22. USDJPY D1 0.066, USDJPY H4 long 0.45, US500 H1 long 0.47. One clear pass in ten tries.
  • A handful of trades carry it. The ten best gold M15 trades made +2,491. The other 2,309 made +543 together.
  • Year by year. M15 PF by exit year: 2020 1.01, 2021 0.86, 2022 0.95, 2023 1.33, 2024 0.97, 2025 1.12, 2026 1.40.
  • Bar timing. Shifting where the candles start barely moved gold: M15 1.14–1.17, H1 1.10–1.20, H4 1.22–1.45. Fine.

Does OTT work on gold before 2020?

No. Before running it I wrote down what I expected: gold M15 with the defaults would stay above PF 1 on 2004–2019 Dukascopy data. It didn't.

Gold, 2004–2019, long + short Trades PF after swap Summed return Long / short
M15 5,274 0.92 −153% −20% / −132%
H1 2,292 1.01 +11% +61% / −50%
H4 964 0.97 −20% +45% / −66%
H1 long only 1,146 1.07 +61%

Fixed size, no compounding. "Summed return" adds each trade's profit as a percent of its entry price. Gold rose 266% over the period.

Gold price on a log scale and cumulative OTT return on M15 H1 and H4, long plus short, 2004 to 2026: M15 falls to about minus 150% by 2019 and only rises in 2026, H1 and H4 drift around zero, Dukascopy data with price-scaled swap

The M15 line, the best one since 2020, lost steadily for sixteen years. The random-timing test on 2004–2019 gave p = 0.32 for M15 and 0.07 for H1.

What are the best OTT settings?

On recent gold almost anything works. I ran OTT period 1, 2, 3, 5, 8, 13, 20 and 40 against 0.4, 0.7, 1, 1.4, 2 and 3%. That's 48 combinations per market and timeframe, long + short, after costs:

Market Combos with PF > 1 Profitable in both halves Median PF
XAUUSD M15, 2020–26 48 / 48 27 1.15
XAUUSD H1, 2020–26 47 / 48 41 1.24
XAUUSD H4, 2020–26 43 / 48 32 1.28
USDJPY H4 43 / 48 30 1.20
US500 H1 22 / 48 10 0.99
EURUSD H1 15 / 48 6 0.96
GBPUSD H1 20 / 48 8 0.99
NZDUSD H1 5 / 48 0 0.87
BTCUSD H1 27 / 48 17 1.01
XAUUSD M15, 2004–19 24 / 48 0 1.00
XAUUSD H1, 2004–19 29 / 48 2 1.02

"Both halves" = profitable in the first and second half of the data. For 2004–19 the halves are 2004–2011 and 2012–2019.

OTT strategy settings grid on XAUUSD M15, OTT period 1 to 40 against OTT percent 0.4 to 3, profit factor after costs, gold 2004 to 2019 versus 2020 to 2026

Same 48 settings, same market. Since 2020 every one of them made money on gold M15. From 2004 to 2019 half did and half didn't, and not one was profitable in both 2004–2011 and 2012–2019. The settings didn't get better in 2020; gold started trending. If you optimize OTT on recent gold, you're fitting the rally.

I also tried the eight moving averages the script offers. VAR was the best or close to it almost everywhere, mostly because it trades least: on gold M15, VAR made 2,319 trades, EMA 4,611, ZLEMA 10,853 and TSF 20,525. TSF and ZLEMA lost on every forex cell. "TMA" with period 2 is the same as SMA.

Is the colour-change signal better?

It looks better since 2020 and isn't before. This is signal type 3 from the description, and it's also roughly what the screener shows. It trades 3 to 6 times less than the default.

OTT signal types compared, long plus short, default settings, H1 and H4 on six markets: OTT colour change beats the default signal in 9 of 12 cases on 2020 to 2026 data and in 3 of 12 on 2004 to 2019 Dukascopy data

On 2020–2026 the colour signal won 9 of 12: EURUSD H4 went from 0.94 to 1.41, GBPUSD H4 from 0.93 to 1.43, gold H1 from 1.19 to 1.60. That's the kind of table that gets a strategy shared. I wrote down before running the older data that the colour signal would beat the default in most of these cells from 2004 to 2019. It won 3 of 12. EURUSD H4 fell to 0.86.

One cell held up: gold H4 with the colour signal made PF 1.20 on 2004–2019 (494 trades, positive in both 2004–2011 and 2012–2019) and 1.42 since 2020, and it beat random timing at p = 0.045. That was one of eight cells I tested that way, so p = 0.045 doesn't mean much, and it's about 30 trades a year. I'd call it something to watch, not something to run.

Signal type 1, price crossing OTT, was the worst of the three everywhere: 2,600 to 7,200 trades and PF below 1 on most markets.

How does it compare with the other trend followers?

Same Exness gold data, same costs, default settings, long + short:

Gold, Jan 2020 – Sep 2026 H1 PF H4 PF
OTT 1.20 1.22
TOTT 1.44 1.25
Super Scalper 1.31
Hull Suite 1.28 1.25
PMax 1.37 0.98
UT Bot 1.04 1.17

OTT sits in the middle. All of these rode the same gold rally, and the ones I took back to 2004 all looked weaker before 2020. Super Scalper H1 is the only one so far that also beat random timing on 2004–2019 gold (PF 1.10 after swap, p = 0.005).

Risk structure

  • No stop loss. A trade closes only on the opposite signal. With VAR 2 that's usually fast (gold M15 trades last 25 hours on average) but not always: the longest held 505 hours.
  • The worst trades are all recent. All ten of the worst gold M15 trades were between October 2025 and September 2026. The worst: a buy at 4,889.93 on 30 January 2026, closed at 4,741.76 on 1 February, −148 USD per 0.01 lot. Earlier that same day a buy at 5,124.70 lost 97 in two hours as gold dropped.
  • Whipsaws. On 23 March 2026 a sell lost 78 and the buy after it lost 91, both within eight hours.
  • Losing streaks. The longest on gold M15 was 24 trades in a row. The win rate is 17–36% on M5 to H4.
  • Swap. Raw-account swap on longs, scaled to price, takes gold M15 from PF 1.17 to 1.14, H1 from 1.20 to 1.16, H4 from 1.22 to 1.16.
  • What isn't a red flag: no martingale, no grid, no averaging.

Who should use it?

If you use the screener to watch a list of tickers, know that it isn't showing you the strategy's trades. Its calls behave like the colour-change signal, and that signal didn't hold up on older data either. As an automated long + short system with the defaults, OTT lost on forex, lost on old gold, and its recent gold result is mostly 2026. I wouldn't run it.

What I couldn't verify

  • TradingView's own report. My numbers come from my port. I didn't export TradingView's strategy tester to compare trade by trade.
  • Turkish stocks. OTT was built for BIST shares like THYAO and GARAN, which are in the screener's defaults. I had no tick data for them.
  • Forex and index swap. Not included outside gold. It wouldn't rescue PF 0.80.
  • The screener as a whole. I tested its trend direction as a trading signal. I didn't test it as a filter for picking which of 20 tickers to trade.
  • Daily candles. Mine close at UTC midnight; TradingView forex daily bars usually close at 17:00 New York.

Bottom line

The TradingView OTT strategy doesn't repaint, and with default settings it made PF 1.17 on gold M15 since 2020, 83% of it in 2026, after losing 153% on the same setup from 2004 to 2019. Its screener shows a different signal than the strategy trades. No edge that I could find.

This is part of a series where I take the most-boosted open-source TradingView strategies, port them exactly and test them on broker ticks with real costs. The TOTT backtest covers the slower two-line version.

I'm not affiliated with TradingView, KivancOzbilgic or Anıl Özekşi. Past results, including backtests, don't guarantee future results.