Repainting indicators should come with a warning label

ChartNinja

Technical Analyst
Messages
187
Reaction score
33
Location
Manchester, UK

Spent a couple weeks messing with a "non-repainting" buy/sell arrow indicator I found on the TV community scripts. Backtest looked insane, like 80% win rate on EURUSD 15m over 2 years. Felt too good so I ran it on bar replay.

Yeah. Arrows would show up, then vanish, then reappear two bars later. Classic repaint. The backtest was just reading the final state of the chart, which of course looks perfect. Live you'd be sitting there with no signal and then boom, magic arrow appears in the past.

I don't get why this isn't the FIRST thing people check. There's a reason all these free arrows look great in screenshots. Take any of them, throw it on bar replay, watch how many signals blink in and out. That's your real win rate.

Anyway, if you're testing something, replay is the only honest test. Everything else is just pretty pictures. Rant over.

CryptoFXTrader

Crypto-Forex Hybrid
Messages
239
Reaction score
27
Location
Singapore

Bar replay catches repainting, sure. But calling it the only honest test is a stretch.

Replay tells you whether the arrows are real. It doesn't tell you anything about whether the edge is real. You click through in 20 minutes what took 2 years, you already know roughly what happened next, and the spread is whatever the platform decides to show you that day. I've had setups that looked clean as hell in replay and fell apart live because the entry candle closed 1.5 pips against me and suddenly the risk/reward was garbage.

The thing I actually trust more than replay for repainting specifically is the alert log. Set the alert, let it fire in real time, then go back a week later and compare the log against the chart. Arrows can lie in replay. An alert that fired at 14:32 doesn't un-fire. If your alert log matches the arrows, the indicator is honest. If you got 3 alerts and the chart shows 5 arrows, you know exactly what's happening.

Different tools for different questions. Replay for repainting, alerts for live behavior, forward demo for the stuff neither of them can teach you (slippage, swap, and not panic closing at 2am).

Out of curiosity, which script was it? Half the ones tagged "non-repainting" just use a higher time frame request with lookahead left on by default. That one catches a lot of people. I messed around with a similar script a while back and spent an embarrassing amount of time blaming the broker before I figured out it was just the security call.

Also worth reading if you want the fuller testing process, backtesting swing setups.

RiskManagerRon

Risk Management Expert
Messages
188
Reaction score
55
Location
Chicago, USA

The alert log is the closest thing to a polygraph we've got for these scripts, so yeah, I'm with you there. One caveat though: check the alert setting before you trust it. Most people leave it on "once per bar" and then wonder why they got nine pings on the same 15m candle. Switch it to "once per bar close" and now you're actually logging what you'd see live. Took me way too long to figure that out, had a whole week of alert spam that made a decent indicator look like it was firing on every tick.

But honestly the part of this thread that bugs me is the win rate obsession. The OP's whole freakout is "80% looked insane." 80% of what? I run a setup that wins maybe 45% of the time and it pays my bills because the average winner is 2.5R and the losers are cut at 1R. Meanwhile I've watched a guy I used to trade with ride an 80% winner into a blown account because the two or three losses a month were full-margin disasters. Repaint doesn't even enter into it at that point. You can have the most honest, non-repainting arrow on the planet and still get buried if you don't know your average loss.

So to the OP: congrats on catching the repaint, genuinely, that puts you ahead of most of the TV comment section. Now go run the thing on a demo for a month and log your actual R multiples instead of your hit rate. That's the number that'll tell you if it's worth a dime.

And nah, not naming the script. There's about forty of them tagged "non-repaint" on there and they're all distant cousins of the same thing anyway.

MacroTraderTom

Macro Analyst
Messages
236
Reaction score
71
Location
Edinburgh, UK

Alert log being a polygraph, I'd push back on that a bit. It proves a condition fired at 14:32. It doesn't prove the arrow sitting on your chart right now was drawn there. If the script repaints by shifting the arrow back two bars, you get a perfectly clean alert log and a chart full of arrows that never existed at those prices. The only way the log actually catches that is if you screenshot the chart the moment the alert hits and compare arrow positions a week later. Otherwise you're verifying the script has a condition, not that the arrow is honest.

Ron's win rate point is right but I'd go further. Half these free arrow scripts don't plot a stop at all. No stop means no R, no R means no expectancy, and expectancy is the only number that matters. So people fixate on the 80% because it's literally the only thing the indicator gives them to measure. Signal and vibes. I burned most of a summer on one of these things in 2021, decent hit rate, no stop logic, and I still can't tell you if it was profitable because I never defined what a loss was supposed to look like.

Which honestly loops back to the OP's original rant. Repaint is the loud problem. The quiet one is that most of these scripts aren't a strategy, they're a shape on a chart, and people are out here grading shapes.

MacroTraderTom

Macro Analyst
Messages
236
Reaction score
71
Location
Edinburgh, UK

Ron's "once per bar close" bit is the thing nobody does and it quietly wrecks half the alert logs out there. Intrabar alert means you're logging a condition that might not survive the close. If your entry logic assumes the close, you just built a log full of trades you'd never actually take. Same disease as reading the live bar in a backtest.

And I'll stay on my hill about the alert log not being a polygraph. It proves a condition fired. It doesn't prove the arrow sitting on your chart right now was drawn at that price. Two different claims, and people blur them constantly because the log feels objective.

Which is why I mostly stopped chasing arrows and just coded the rules myself. Uglier, slower, but when the backtest lies to me at least it's my fault and I can go find the bug. Boring version of how I do it here: backtesting swing strategies

Genuine question for the thread though. Has anyone actually caught a script shifting an arrow using the screenshot-and-compare method, or do we all just assume it happens and never bother proving it? I've seen it in replay a hundred times but I've never sat there with two screenshots a week apart. Wondering if that's the step everyone skips, myself included.

PipHunter

Senior Trader
Messages
209
Reaction score
45
Location
London, UK

Tom's question at the end is the one I actually want answered too. I've never done the screenshot thing. Not once. I just assume repaint after replay shows it and move on with my life.

But here's the part that gets me. I ran one of these arrow scripts on a demo for like 3 weeks, alerts on, once per bar close because I'd already learned that lesson the hard way. Got maybe 12 alerts. Went back through the chart and counted the arrows. 17. Five arrows that never pinged a single alert. So it's not even just repaint, some of these things draw arrows that the alert condition doesn't even see. Is that a repaint thing or is that a completely different bug? Because I genuinely don't know.

Ron I hear you on the win rate thing but I think it cuts the other way for beginners. I didn't even know what average loss WAS when I started. So 80% was the only number I had to grab onto. Nobody hands you expectancy when you're 3 months in and just trying not to drown.

The summer of 2021 comment hurt to read btw. Mine was spring 2022. Same story, still can't tell you if it made money.

You must log in or register to reply here.