Skip to content
← Home

TrendMaster: I built it, then I tried hard to break it.

A trading strategy for TradingView with Python ports and a research terminal. Where it stands: unproven. The backtests are positive, and the same analysis shows the edge is statistically indistinguishable from zero. This page is the evidence for that sentence.

statusunproven
paper tradingsince 2026-11-25 · 0 signals
track recordnone yet
ordersnone · research only

01 what I built

A strategy, a filter, two ports and a protocol

TradingView strategy

A Pine v6 strategy of about 934 lines: trend entries, pyramiding, ATR stops, a trailing stop and daily loss limits.

7-condition entry filter

Volatility, Bollinger trend, RSI, MACD, stochastic, ADX and a moving-average trend, counted. Entry needs enough of them to agree.

Python ports

The same logic as a data pipeline: fetch, indicators, signals, portfolio simulation, performance. Fills happen at the next bar's open.

Research terminal

A Streamlit app that pulls candles through ccxt and runs the pipeline. Research only: it places no orders.

Validation protocol

Three periods, DEV, VAL and HOLDOUT, with the holdout reserved for one final test.

entry filter · Pine v6From the project
volatilityFilter   = (upperBand - lowerBand) > (atrValue * bbMultiplier)
bbTrendFilterLong  = close > basis
rsiFilterLong      = rsi > rsiLongThreshold
macdFilterLong     = macdLine > signalLine
stochFilterLong    = k > stochOversold and k > ta.sma(k, stochSmoothing)
adxFilter          = adx > adxThreshold
trendFilterLong    = not enableTrendFilter or close > trendMA
longConditionsMet  = (volatilityFilter ? 1 : 0) + (bbTrendFilterLong ? 1 : 0) + (rsiFilterLong ? 1 : 0)
                   + (macdFilterLong ? 1 : 0) + (stochFilterLong ? 1 : 0) + (adxFilter ? 1 : 0)
                   + (trendFilterLong ? 1 : 0)
longEntryConditions = isBearish24h ? longConditionsMet == 7 : longConditionsMet >= minConditions
if longEntryConditions
    strategy.entry("Long", strategy.long, qty=longQty, comment="Initial Long")

Abridged from lines 271–285 and 459–464 of the strategy file. Defaults in that file: minConditions 5 of 7, adxThreshold 25, rsi 14. When the 24-hour trend is bearish, a long needs all 7.

a loose endThe settings on my TradingView chart differ from this file's defaults (for example a minimum ADX of 30 on the chart against 25 in the file, a 2% daily loss limit against 3%). Until I reconcile them I treat chart screenshots as a settings snapshot, not as evidence of performance.

02 what the data said

It made money in the backtest, and I do not trust that

On the frozen research configuration the backtest was profitable. That is the easy part to quote. The rest of the same document is why I do not: the per-trade edge is not distinguishable from zero, and a handful of trades carry the result.

Net profit+$23,634on $50k, 5 coins, 2021–2026, after funding
Mean R per position−0.030R95% CI −0.130 to +0.081. It includes zero.
Profit from best 588%of all profit. Without the best 10 positions: −$9,480.
P(6-year total ≤ 0)18–21%bootstrap estimate
Median worst drawdown30%95th percentile 49%
At 2× costs+$12,085fees and slippage doubled: still positive
BTC correlation0.61daily returns against BTC
US equities0 of 7tickers beat random-entry timing

mean R per position, 95% confidence interval

The interval includes zero: on this data I cannot tell the strategy's edge from no edge at all.

my readiness checklist

“fragile and regime-dependent… unproven”

my own verdict, from the project's master document

Run S3 · hash 1cfd6e61b19b9df3. Setup Long-only, 6× ATR stop, no trailing stop, 120-bar max hold, 24-bar re-entry cooldown, 1% risk per trade. Costs 0.05% commission per side, 1 tick + 1 bp slippage, funding included. Source TrendMaster master document, compiled 2026-11-25.

03 a bug I caught

The number that did not survive a re-run

The original report showed HYPE up +44.9%. After I repaired the report runner and ran the same strategy file again, HYPE was −7.3%. The +44.9% is not a result. I keep it here as the error the repair exposed, and as a reminder of how good a wrong backtest can look.

SymbolOriginal reportRepaired report
HYPE+44.9%error2026-04-06 → 10-31−7.3%2026-04-30 → 11-24
XRP−96.4%2026-02-23 → 10-31−96.1%2026-03-19 → 11-24
LINK+1.4%2026-02-23 → 10-31−32.5%2026-03-19 → 11-24

Both runs 1h bars, $10,000 per symbol, the same strategy file. Costs in the repaired run: 0.05% commission per side + 3 ticks slippage; funding not modelled. The windows are about 24 days apart because each run fetches the most recent ~6,000 bars, so this table does not separate the repair from the data shift. The point stands either way: a sign flip is not an edge. Sources original report generated 2026-10-31; repaired report generated 2026-11-24.

The repaired run, drawn

This is the strategy's Pine-port configuration with shorts and pyramiding on, not the frozen S3 study above. It loses on every symbol: XRP almost entirely.

Equity, $10,000 start$0$5k$10k$15kDrawdown from peak-100%-50%0%Apr ’26May ’26Jun ’26Jul ’26Aug ’26Sep ’26Oct ’26Nov ’26HYPELINKXRP
Equity, $10,000 start$0$5k$10k$15kDrawdown from peak-100%-50%0%Apr ’26Jun ’26Aug ’26Oct ’26HYPELINKXRP

Run trendmaster_repaired/backtest_report.html, generated 2026-11-24 20:18:17 UTC. Bars 1h. Capital $10,000 per symbol. Costs 0.05% commission per side + 3 ticks slippage; funding not modelled. Series downsampled to about 220 points per symbol.

Symbol · periodNetMax DDTradesWin rateProfit factorBuy & hold
HYPE2026-04-30 → 2026-11-24−$726 (−7.3%)−38.7%36621.0%0.98+52.8%
XRP2026-03-19 → 2026-11-24−$9,611 (−96.1%)−96.5%36615.0%0.30−36.9%
LINK2026-03-19 → 2026-11-24−$3,250 (−32.5%)−59.6%43521.6%0.90−2.9%

not yet parityThe runner's own README says these results still need checking against TradingView on the same symbol, timeframe, range, fees, slippage and fill rules before I treat them as the Pine strategy's numbers.

04 research log

Ten ideas tested, none survived

I wrote down ten changes that might improve the entry filter and tested each one alone on the DEV period only. Expectancy is in R, multiples of the amount risked per position. Every idea is still negative. My script flagged four as keep because they moved the number by a hair; the best of the rest (H9) gained 0.018R and still sits at −0.154R. No coin had positive expectancy in any of them.

  1. H1Enter on conviction onset−0.179R−0.006
  2. H2Drop aggressive reversalskeep−0.166R+0.007
  3. H3Veto entries stretched > 2 ATR−0.189R−0.016
  4. H3bSame veto at 3 ATR−0.175R−0.003
  5. H4Relative-volatility (ATR rank) filter−0.205R−0.033
  6. H5Require volatility expansion−0.181R−0.009
  7. H6Volume replaces the Bollinger filterkeep−0.172R±0.000
  8. H7Veto volume climaxes (3×)keep−0.171R+0.002
  9. H8A real 4h higher-timeframe trend−0.177R−0.005
  10. H9Take half off at 1R−0.154R+0.018
  11. H10Require 6 of 7 conditionskeep−0.173R±0.000

Period DEV, 2021-01-01 to 2024-07-01. Costs 0.05% taker, 1 tick, 1 bp; funding not modelled in the v2 notes. Baseline −0.173R (the thin tick; the last column is each idea's change against it). This is the v2 research line, a different measure from the S3 figures above. Source v2 single-idea experiment results.

05 protocol and status

One look at the holdout, and no track record yet

  • DEV 2021-01-01 → 2024-07-01 development
  • VAL 2024-07-01 → 2026-09-15 validation
  • HOLDOUT 2026-09-15 → onward one final test; whether to run it is my decision
paper tradingnot a performance claim
started2026-11-25
signals0
fills0
track recordnone

“PROSPECTIVE, VIRTUAL. No real orders exist. Not a performance claim.”

Virtual capital, 5 × $10,000 on the S3 configuration. Source first daily paper-trading report, 2026-11-25. The first report is the latest figure on this page.

What I took from it

  • A backtest is a hypothesis. The confidence interval says more than the headline return.
  • Look at where the profit comes from before believing the total: five positions made 88% of it.
  • A result that appears or flips with the window is a warning, not a finding.
READY~/research
read-only · no live orders · built 2026-11-30