QLeaper (@QLeaperX) header
QLeaper (@QLeaperX) profile picture

I try to break trading strategies before they break my account. Posting what's left Small builders Discord, capped at 100 active members https://nitter.gq/t.co/gesrpE1Tw7

Joined June 2019
Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)Photo by QLeaper (@QLeaperX)
I started a small Discord for people who build and test systematic strategies No signals, no courses, nothing for sale. We share back tests, code and ideas and try to break them before the market does Capped at 100 members and it stays active - quiet accounts get swapped for people on the waitlist To join answer 3 short questions about what you're building: discord.gg/ywMV4w8t48
2
3
300
How to check your bot actually does what your back test did before it goes on demo I put a new bot on demo this weekend. Before it got there it had to match my research code trade by trade - 85 of 85 trades on the same day and the same hour, 0 extra How I do it: - Research version in Python, bot in MT5. Two separate codes, same rules - Run the bot in MT5 tester on real ticks, same dates, and export its trades - Match them one by one. Same day, same entry hour, same direction. Count matched, missing and extra - Entry price can be a little off. Mine was +0.51 points on average, that's the spread. Much more than spread means something's wrong - Stop distance has to match exactly, not roughly Missing and extra trades are the ones worth chasing. 2 equity curves can look the same with a few wrong trades inside Also make the bot refuse to start when something it needs is missing. Mine reads a file with holiday early closes. First time I attached it the file wasn't there and it refused to trade, which is exactly what I wanted
24
Every week someone posts a perfect equity curve, no rules, "only for a small group" Ask one question and you get blocked If the rules can't survive a question in the replies, they won't survive the market either
1
2
40
This looks really promising but I can't access it in my region. Would you be able to share it via wormhole.app/ and share the link please? Appreciate it. @NO195930391
ゴールド(xauusd)の自動売買プレ企画 僕は2週間ぐらい前から稼働して FW無いので、勉強用に使ってください ソース配布です 以下のオープンチャットで全員プレです PWは『1203』 5日後に消します!リツイート、いいねお願いします❤️ line.me/ti/g2/eorTTa0H4XMDwM…
1
1
1
333
I tested the "Double 7s" dip strategy that keeps going rounds on X. 33 years of SPY and it actually holds up after costs Rules: 1. SPY closes above its 200 day average 2. Close is the lowest close of the last 7 days - buy at the close 3. Sell at the close when it's the highest close of the last 7 days No stop. Only 2 parameters - the 7 and the 200 SPY 1993-2026, 331 trades Win rate 79% PF 2.76 before costs, 2.46 after (5 bp a side) In the market 29% of the time Since 2021: 59 trades, PF 2.35 after costs Anyone trading this live?
1
1
63
Larry Connors' rule. Daily closes with dividends in, fills at the signal close so you need a market on close order. Cash earns nothing between trades here, with T-bills it would be a bit more. Lookbacks 5-10 gave PF 2.1 to 3.2 at 2 bp a side. Happy to share the script
35
Mean reversion people - do you use a stop or not? Testing a famous SPY dip rule this week. No stop at all and it still won 79% of trades since 1993. But one trade in Aug 2011 was -14% open before it closed at -7.6% Not sure a stop helps here, haven't tested it yet Fixed stop, time stop or nothing?
40
Love this @Market_Emotions you've shared the H4 bias, H1 statmap zones and expansion TPs/ the one piece nobody has is where the stop goes. Your gold short had it 6.55 above entry and EURJPY ~25 pips under and both ran 7-9R. Is it above the manipulation level, ATR or last swing?
There's actually a cheeky reason why I ported a lot of these indicators over to MT5. If other traders had success with them, then why wouldn't I include them? I've developed an EA which ( as closely as I could ) mimic how @Market_Emotions trades based off of the scraps he feeds us peasants in the general public. By no means is it perfect, however even though it is completely unoptimized , it does show some what promising results: I plan to do a lot of testing of this idea when I get a bit more free. And no, this one ain't for sale nor am I giving it away, you guys gotta figure it out yourself 😅😅
1
1
88
Validation Lab #2: Peak or plateau I ran a breakout grid on pure noise. Best setting made +75% in sample, the ones next to it averaged +8%. Out of sample -6.5% If your best setting is way above the ones next to it, you found noise not edge. Run the neighbours. A wide flat area where most values make money is what you want, a single hot spot is the market telling you a joke Do you pick the best setting or the middle of the plateau?
1
71
How I run the neighbour check: - Pick a grid around your setting, every parameter up and down - Count % of settings that make money after costs - 70%+ = broad, under 40% or one lonely peak = narrow - Pick the middle of the plateau, not the top Synthetic data for the peak (long/short breakout, 225 settings, 60 random worlds, no costs). SPY 1993-2026 for the plateau, 5 bp a side, all 207 settings made money. It's long only on index that went up a lot so plateau tells you it's stable, not that it beats buy and hold
1
39
Validation Lab #1: Beat the dumb version I've killed way more strategies than I kept, so I'm starting a small weekly series on the checks I run before any bot gets near real money. First one: 100 MA crossovers on pure noise, best one made +56% in sample and -2.7% on data it never saw The idea is simple. Take your strategy and build a dumb copy of it. Everything stays the same, except the dumb copy enters on random days. If your strategy can't beat that, the profit in your back test isn't coming from your entry Why does this matter? A back test can make money for three reasons, and the equity curve looks the same for all of them. You might have a real edge. The market might have gone up the whole time while you were long, which on indexes is most of the time. Or you tried 100 settings and kept the lucky one. Looking at the curve alone you can't tell which one you have To show how it works, I rebuilt a test I posted on Discord a while ago, this time with fixed seeds so anyone can get the same numbers. It's all synthetic data - random walks I generated myself, no costs. I like fake data for this because I know the answer before I start: there is no edge in it Part 1: pure noise I made a random walk of about 10 years of daily bars, with no drift at all. Then I ran 100 moving average crossovers on it and kept the first 7 years as in sample and the last 3 aside The best one was 50/180, with +56% and a Sharpe of 0.48 in sample. If someone posted that, I'd probably take a second look On the 3 years it had never seen, it made -2.7% Maybe that was just one weird world, so I repeated the whole thing on 60 different random walks. On average the winner had a Sharpe of 0.50 in sample and -0.01 out of sample. In 30 of the 60 worlds it went negative, basically a coin flip There was nothing to find, and the scan still found a "winner" every single time Part 2: a market that goes up Pure noise is easy to catch with a simple in sample / out of sample split. The trickier case is a market that rises anyway, like an index So the second world drifts up slowly. The rule is plain dip buying: buy after 3 down days, hold for 5. Result: 143 trades, PF 1.34, 52% winners, +0.23% per trade. I'd probably keep that one if I didn't check further Then I built the dumb version - same market, same 143 trades, same 5 day hold, only the entry days are random - and ran it 5000 times 91% of those random runs made money too lol. The median random run made +0.21% per trade against +0.23% for the rule, so the rule beats only 56% of them. To make the top 5% it would need around +0.45%, about double So the PF 1.34 is just the market going up. Any entry held for 5 days picks up the same drift How to run it on your own strategy Keep the market, period, number of trades, long/short split, hold, exits and costs exactly the same. Only the entry goes random - random days, or a random time of day if it's intraday. If your real trades can't overlap, don't let the random ones overlap either. Then run it 1000+ times and count how many runs beat you If fewer than 5% of the random runs beat you, that's interesting. If you're in the middle of the pack, you haven't shown anything yet One thing that's easy to miss: if you picked your settings out of 100 tries, each random run should also get the best of 100 random tries. Otherwise you're comparing your best of 100 with one average monkey, and of course you win haha What passing doesn't mean Passing doesn't mean you found an edge. Even if you pick the best variant in sample and it holds up out of sample, it can still be overfit by chance Same here. The top 5% happens to random rules 1 time in 20. I ran the dip rule on 60 drifting worlds and it made the top 5% in 1 of them, when pure chance gives about 3. So if you test 20 ideas, one will probably pass on luck alone That's why this is the first check and not the last. The next ones cover costs, a holdout, nearby parameters and other markets Next week: the realism ladder - what happens to the same rule when you go from cheap bars to real ticks and real costs Script on request if anyone wants to play with it. It's all synthetic, so nothing secret in there Do you run random entries against your strategies, or do you mostly look at the equity curve?
10
A strategy with 1R stops had a -94R trade in it. It sat in my reports for 2 weeks because I only read the summary Limit order filled past the stop on a gap, platform couldn't attach the stop on the wrong side and the short just ran. For 4 weeks About 200 reports went past me in those 2 weeks and not one summary showed it Now every run gets one check before I read anything else - worst trade in R. With a working 1R stop you can't get -94R
1
41
It cut both ways. Same bug gave one pair 2 naked winners that were 55% of its holdout profit. Re-scored without them it failed. Now a script checks R bounds, stuck trades and overlaps on every run and fails loud
26
How to check your data's clock before you test a session strategy My broker's history before 2018 turned out to be another vendor's data on a different clock. 1 hour off, 2 hours in some weeks. Any hour based test on that data was looking at the wrong hour What I check now: - First bar after the weekend. FX opens Sunday 17:00 New York time. If it shows up at a different hour than your broker's offset says, your clock is shifted - Server time. Mine is New York +7, so the daily candle closes at 17:00 New York - Same symbol from a 2nd source. Compare hourly returns with a shift of -1, 0 and +1 hour, the best match is the real offset - Each era on its own. One of my feeds changed its clock in 2024 without a word - Mid March and late Oct/early Nov, the weeks when US and Europe change clocks on different dates Daily data won't show you any of this. Same pair from 2 feeds matched 0.995+ on daily returns and only 0.90-0.97 on hourly And don't type "09:30" into an EA because the strategy says New York open. The EA compares it with server time, not New York Have you ever checked what clock your data is on?
2
52
Why it matters: a wrong clock doesn't crash anything. You get a normal looking "no edge" result and bin a strategy that never got tested at the right time
22
How to set commission in TradingView strategy tester so it doesn't lie to you Every trade in one of my TradingView back tests lost about $7. Even a short where price went my way. Position was worth $1.39 What I check now: - Strategy settings > Properties. Look at order size and commission together, not one by one - What qty your script sends in strategy.entry(). On FX it's often raw units, not lots - "Per contract" commission is charged on every unit of that qty. Mine was $3.5 per contract on 1 unit of USDCAD, so $7 round trip on a $1.39 trade - If qty is in units, use percent commission instead, worked out from what your broker really charges - List of trades, one trade by hand: price move x qty minus commission should give the net P&L Making the size bigger doesn't fix it. Fee and P&L grow with the same qty, so every size looks just as broken And don't copy a futures $ per contract number into an FX script Ever had a back test where every trade lost the exact same amount?
1
2
135
I asked @MapleStax if this was back tested. Answer was "back test it yourself... lazy" So I did. His exact rule, 8 years of NQ, real costs and 1-min fills: 6136 trades, PF 1.01 before costs - 0.94 after Then 180 variants on NQ, ES, YM, Russell and gold. Not one made money after costs And why it looks so clean on the chart? The indicator repaints. On history the 15m signals show up before the 15m candle has closed. Trade them like that and the same rule shows PF 32.95 He told me to back test it. The back test says no
This simple strategy makes trading fun again How to trade CBC indicator: If 15min flips long, take long entries off of 5m 9/20 EMA If 15m flips short, take short entries off of 5m 9/20 EMA
1
1
132
How I tested it: - 15m CBC flip = 15m close above the prior 15m high (short: below the prior low), closed candles only - Entry = limit inside the 5m 9/20 EMA cloud, only when the cloud agrees with the 15m side - Exit when the 15m CBC flips back, flat 15:55 ET. Entries 8:00-12:00 ET like in his videos - Costs 1.10 NQ points per round turn - Also tried his previous-candle stop, the EMA stop, pivot targets, half off at +1 ATR and a 9:45 start. Same story - The repaint: the Pine pulls the 15m state with lookahead_on and draws the LONG/SHORT labels back on earlier candles. Live you only know the flip when the 15m candle closes
1
91
Autopsy #2. I ran Thursday's dumb version test on a popular 10 min EMA ribbon reversal setup from YouTube ES and NQ futures 2021-2026, 870 trades, -0.044R a trade after costs. Against random entry days it sits in the middle of the range, nowhere near top 5% Then I did what everyone does and searched 1944 variants. Best one made +0.100R a trade on 2021-23. On 2024-26 0 of 10 checks were positive Same thing as best of 100 MA crossovers on noise, just on real data this time Which setup should I run through it next?
Validation Lab #1: Beat the dumb version I've killed way more strategies than I kept, so I'm starting a small weekly series on the checks I run before any bot gets near real money. First one: 100 MA crossovers on pure noise, best one made +56% in sample and -2.7% on data it never saw The idea is simple. Take your strategy and build a dumb copy of it. Everything stays the same, except the dumb copy enters on random days. If your strategy can't beat that, the profit in your back test isn't coming from your entry Why does this matter? A back test can make money for three reasons, and the equity curve looks the same for all of them. You might have a real edge. The market might have gone up the whole time while you were long, which on indexes is most of the time. Or you tried 100 settings and kept the lucky one. Looking at the curve alone you can't tell which one you have To show how it works, I rebuilt a test I posted on Discord a while ago, this time with fixed seeds so anyone can get the same numbers. It's all synthetic data - random walks I generated myself, no costs. I like fake data for this because I know the answer before I start: there is no edge in it Part 1: pure noise I made a random walk of about 10 years of daily bars, with no drift at all. Then I ran 100 moving average crossovers on it and kept the first 7 years as in sample and the last 3 aside The best one was 50/180, with +56% and a Sharpe of 0.48 in sample. If someone posted that, I'd probably take a second look On the 3 years it had never seen, it made -2.7% Maybe that was just one weird world, so I repeated the whole thing on 60 different random walks. On average the winner had a Sharpe of 0.50 in sample and -0.01 out of sample. In 30 of the 60 worlds it went negative, basically a coin flip There was nothing to find, and the scan still found a "winner" every single time Part 2: a market that goes up Pure noise is easy to catch with a simple in sample / out of sample split. The trickier case is a market that rises anyway, like an index So the second world drifts up slowly. The rule is plain dip buying: buy after 3 down days, hold for 5. Result: 143 trades, PF 1.34, 52% winners, +0.23% per trade. I'd probably keep that one if I didn't check further Then I built the dumb version - same market, same 143 trades, same 5 day hold, only the entry days are random - and ran it 5000 times 91% of those random runs made money too lol. The median random run made +0.21% per trade against +0.23% for the rule, so the rule beats only 56% of them. To make the top 5% it would need around +0.45%, about double So the PF 1.34 is just the market going up. Any entry held for 5 days picks up the same drift How to run it on your own strategy Keep the market, period, number of trades, long/short split, hold, exits and costs exactly the same. Only the entry goes random - random days, or a random time of day if it's intraday. If your real trades can't overlap, don't let the random ones overlap either. Then run it 1000+ times and count how many runs beat you If fewer than 5% of the random runs beat you, that's interesting. If you're in the middle of the pack, you haven't shown anything yet One thing that's easy to miss: if you picked your settings out of 100 tries, each random run should also get the best of 100 random tries. Otherwise you're comparing your best of 100 with one average monkey, and of course you win haha What passing doesn't mean Passing doesn't mean you found an edge. Even if you pick the best variant in sample and it holds up out of sample, it can still be overfit by chance Same here. The top 5% happens to random rules 1 time in 20. I ran the dip rule on 60 drifting worlds and it made the top 5% in 1 of them, when pure chance gives about 3. So if you test 20 ideas, one will probably pass on luck alone That's why this is the first check and not the last. The next ones cover costs, a holdout, nearby parameters and other markets Next week: the realism ladder - what happens to the same rule when you go from cheap bars to real ticks and real costs Script on request if anyone wants to play with it. It's all synthetic, so nothing secret in there Do you run random entries against your strategies, or do you mostly look at the equity curve?
3
1
134
The setup is @satymahajan, rules exactly from his video, checked on his own example day to the cent before any P&L. I also tried 244 filters (VIX, news days, weekday and more) and none did better than a random filter of the same size youtube.com/watch?v=eYeUS5wR…
1
72
How my first trading video got made: animation is Python (Manim), voice is ElevenLabs, Claude Code wrote most of the code and I picked what stays First draft looked pixelated so we rendered it at 2160 and scaled down to 1080. The final render took about 20 min for 71 seconds of video I'm not doing this every week by hand that's for sure. Anyone else making videos for their trading stuff? What do you use?
Validation Lab #1: Beat the dumb version I've killed way more strategies than I kept, so I'm starting a small weekly series on the checks I run before any bot gets near real money. First one: 100 MA crossovers on pure noise, best one made +56% in sample and -2.7% on data it never saw The idea is simple. Take your strategy and build a dumb copy of it. Everything stays the same, except the dumb copy enters on random days. If your strategy can't beat that, the profit in your back test isn't coming from your entry Why does this matter? A back test can make money for three reasons, and the equity curve looks the same for all of them. You might have a real edge. The market might have gone up the whole time while you were long, which on indexes is most of the time. Or you tried 100 settings and kept the lucky one. Looking at the curve alone you can't tell which one you have To show how it works, I rebuilt a test I posted on Discord a while ago, this time with fixed seeds so anyone can get the same numbers. It's all synthetic data - random walks I generated myself, no costs. I like fake data for this because I know the answer before I start: there is no edge in it Part 1: pure noise I made a random walk of about 10 years of daily bars, with no drift at all. Then I ran 100 moving average crossovers on it and kept the first 7 years as in sample and the last 3 aside The best one was 50/180, with +56% and a Sharpe of 0.48 in sample. If someone posted that, I'd probably take a second look On the 3 years it had never seen, it made -2.7% Maybe that was just one weird world, so I repeated the whole thing on 60 different random walks. On average the winner had a Sharpe of 0.50 in sample and -0.01 out of sample. In 30 of the 60 worlds it went negative, basically a coin flip There was nothing to find, and the scan still found a "winner" every single time Part 2: a market that goes up Pure noise is easy to catch with a simple in sample / out of sample split. The trickier case is a market that rises anyway, like an index So the second world drifts up slowly. The rule is plain dip buying: buy after 3 down days, hold for 5. Result: 143 trades, PF 1.34, 52% winners, +0.23% per trade. I'd probably keep that one if I didn't check further Then I built the dumb version - same market, same 143 trades, same 5 day hold, only the entry days are random - and ran it 5000 times 91% of those random runs made money too lol. The median random run made +0.21% per trade against +0.23% for the rule, so the rule beats only 56% of them. To make the top 5% it would need around +0.45%, about double So the PF 1.34 is just the market going up. Any entry held for 5 days picks up the same drift How to run it on your own strategy Keep the market, period, number of trades, long/short split, hold, exits and costs exactly the same. Only the entry goes random - random days, or a random time of day if it's intraday. If your real trades can't overlap, don't let the random ones overlap either. Then run it 1000+ times and count how many runs beat you If fewer than 5% of the random runs beat you, that's interesting. If you're in the middle of the pack, you haven't shown anything yet One thing that's easy to miss: if you picked your settings out of 100 tries, each random run should also get the best of 100 random tries. Otherwise you're comparing your best of 100 with one average monkey, and of course you win haha What passing doesn't mean Passing doesn't mean you found an edge. Even if you pick the best variant in sample and it holds up out of sample, it can still be overfit by chance Same here. The top 5% happens to random rules 1 time in 20. I ran the dip rule on 60 drifting worlds and it made the top 5% in 1 of them, when pure chance gives about 3. So if you test 20 ideas, one will probably pass on luck alone That's why this is the first check and not the last. The next ones cover costs, a holdout, nearby parameters and other markets Next week: the realism ladder - what happens to the same rule when you go from cheap bars to real ticks and real costs Script on request if anyone wants to play with it. It's all synthetic, so nothing secret in there Do you run random entries against your strategies, or do you mostly look at the equity curve?
1
98