r/algotrading • • Mar 28 '20 Bravo

Are you new here? Want to know where to start? Looking for resources? START HERE!

1.5k Upvotes

Hello and welcome to the /r/AlgoTrading Community!

Please do not post a new thread until you have read through our WIKI/FAQ. It is highly likely that your questions are already answered there.

All members are expected to follow our sidebar rules. Some rules have a zero tolerance policy, so be sure to read through them to avoid being perma-banned without the ability to appeal. (Mobile users, click the info tab at the top of our subreddit to view the sidebar rules.)

Don't forget to join our live trading chatrooms!

Finally, the two most commonly posted questions by new members are as followed:

Be friendly and professional toward each other and enjoy your stay! :)


r/algotrading • • 4d ago

Weekly Discussion Thread - December 01, 2026

4 Upvotes

This is a dedicated space for open conversation on all things algorithmic and systematic trading. Whether you’re a seasoned quant or just getting started, feel free to join in and contribute to the discussion. Here are a few ideas for what to share or ask about:

  • Market Trends: What’s moving in the markets today?
  • Trading Ideas and Strategies: Share insights or discuss approaches you’re exploring. What have you found success with? What mistakes have you made that others may be able to avoid?
  • Questions & Advice: Looking for feedback on a concept, library, or application?
  • Tools and Platforms: Discuss tools, data sources, platforms, or other resources you find useful (or not!).
  • Resources for Beginners: New to the community? Don’t hesitate to ask questions and learn from others.

Please remember to keep the conversation respectful and supportive. Our community is here to help each other grow, and thoughtful, constructive contributions are always welcome.


r/algotrading • • 4h ago

Data I Built a Free TradingView Alternative – 65,000+ Symbols, Pine Script Support, Unlimited Indicators & All Drawing Tools for Free

76 Upvotes

Hey guys, I've been working on something called TradeScope.

Think of it as TradingView, but without the paywall.

Recently, TradingView has moved a lot of its features behind paid plans. I wanted to build an alternative where traders can access all the tools they need without worrying about subscriptions.

Here's what we've built so far:

  • 65,000+ symbols supported across multiple exchanges.
  • All drawing tools and charting features available for free.
  • Pine Script support – write your own indicators and strategies, just like you do on TradingView.
  • Publish your scripts publicly or keep them private.
  • Invite others to use your indicators and strategies.
  • Share your scripts with the community.
  • No limits on the number of indicators you can add to a chart

https://tradescope-tvc9.vercel.app/


r/algotrading • • 9h ago

Business How do you license your algo?

6 Upvotes

Let's assume I have a profitable algo. Let's not discuss any of that here, please.

How could I actually go about to find some hedge fund or quant firm to at least consider it? What kind of non obvious statistics, track record (and length), benchmarks, data, etc would they want to know before considering investing? How do you even reach out to the right people? How can you establish trust (both ways) with them? What would you feel safe sharing to avoid any reverse engineering risk?

Thanks in advance.


r/algotrading • • 6h ago

Strategy Trying to see if there's Moneyball method of finding market edge...

0 Upvotes

More concise version:

I have a profitable algo, but its edge isn't strong enough for me to scale aggressively through prop firms. Rather than continuing to manually invent hypotheses, I'm experimenting with the opposite approach: give a model clean historical market data and have it search for statistically meaningful patterns that could become a trading rule.

My data is mostly 1-minute OHLCV, with ~10+ years for many instruments.

I've experimented with ElasticNet, GAM, Decision Trees, Random Forest and Gradient Boosting. So far ElasticNet/GAM have been easier to validate, while the tree-based approaches haven't behaved as expected when I implant synthetic patterns and test whether the models can recover them.

The pattern I'm interested in isn't simply “A predicts B.” I'm looking for conditional structures more like:

catalyst A + confluence B/C + regime D → entry → defined exit

The big question I'm struggling with is whether this is actually a sensible way to discover trading edges, or whether I'm basically building an extremely efficient overfitting machine.

I'm especially interested in hearing from people who have actually developed systematic strategies and dealt with this problem in practice. What approaches worked for you? What approaches looked promising but turned out to be statistical bullshit?

I have an independent developer sanity-checking the research so I'm not relying entirely on the model to validate itself.

Instruments currently include ES, NQ, RTY, VIX, 6E, ZN, CL and BTCUSD, with more futures data being added.

I'm not looking for a plug-and-play strategy. I'm looking for better ways to extract and validate market structure from historical data without fooling myself.

----------------------------------------------------
Non-AI gen original (TLDR vibe warning):
----------------------------------------------------

I posted something similar (less general and more specific) but it was kinda frowned upon due to it being AI-gen (I'm just too lazy to type it all and I wanted to provide more context which ended up backfiring aka TLDR welp lol). So I figure I'd try it again but with direct words.

I have a working algo that is profitable but not quite strong enough for me to go balls deep in prop firm world to scale/snag payout as optimally as possible before they cut me off (or if world gives me a break, a business contract but I only know one guy who has that perk and his algo is amazing ugh). I would like an algo that is profitable enough to pass eval in 6-8 months. I'm working on it hopefully I crack it eventually). I also am hoping to find more diverse market patterns as my current algo is mostly based on well-known concepts like mean-inversion, dip in overall bullish instrument, some volatility and ORB based concept. Combination is enough to beat prop firm but the performance is not strong enough and I hope to secure payout within a year or year and half rather than waiting years :/

One idea I really want to flirt on is this: instead of trying to test whatever market idea I can think of (which ain't much since I'm not a smart kid), I figure hey let's use AI flagship model to try to find the pattern from the historical data directly. I had some limitations cause a lot of historical data available for free often have baggage issues that makes it harder to backtest in earnest but I may have solved that problem recently so hoping it'd work out. A little worried though cause many scholarly articles seem to say AI suck at finding genuine patterns and my current edges that are incorporated into my current flagship algo is almost entirely generated based on my lucky guess not from the idea of Moneyballing by using AI to find statistically meaningful pattern from the data itself.

All my data are OHCLV 1 min data FYI

The furthest I got thus far is to try finding pattern seeking algo and I ended up with these 5:

  • ElasticNet
  • GAM
  • Decision Tree
  • Random Forest
  • Gradient Boosting

I can't seem to use the last 3 (thus far I've tried to validate the method by implanting synthetic patterns and hoping it can catch it hence proving that it can detect some patterns) but last 3 (which I assume is more intricate because I am hoping to find more complex relationship than if A -> B. I want patterns like if catalyst A is confirmed, then test confluence B and C under trading regime factor D being favorable then get in with exit strategy). First 2 seem to work but because of my limitation with data and monthly usage I wasn't able to have much luck. Monthly plan is now reset and I have far more clean data (most of them around or over 10 years worth) from various different instruments now (so no data stitching or limiting to intraday price action movements due to lack of future contract rollover info, etc) so hope that would help but I could still use some wisdom/suggestion/advice from people who already made it and have CAGR:DD ratio of 1.5+:1.

I also have a professional developer who gives me sanity test to ensure it won't be too easy for AI to seduce me with sweet sweet lies.

Would appreciate anything that may help. Leave comments here or DM me and I'll follow up :)

FYI: I tried to get whatever trading system/ideas from youtube and other platforms but attrition rate of finding a decent pattern (nevermind being economical after trading costs and some buffer) is really bad sigh :( Currently I am using ES, NQ (also have ES/NQ option data just OHCLV no Greek info like delta/theta/etc oof), RTY, VIX, 6E, ZN, CL and BTCUSD (finding reliable data prior to 2020 was a bit of a bitch but c'est la vie). I got forex pairs too but not sure how solid those data are oof. In the following day or so I hope to secure ZF, SR3, 6J, 6B (maybe more but tbc). Hopefully by the time I am done collecting the data, I get some solid ideas as to how I can improve market edge extraction process cause it's as painful as Chinese sweatshop.... lots of moving parts and labor and not so great profit margin oof.

I am hoping to get this done and out of the way so I can exploit other opportunities as well that I wish I could act on but not feasible yet due to my current circumstance (limited time and capital).

P.S. I appreciate the comments thus far but when running them on my LLM, it seem to nauseatingly point out that there are some good suggestions (mostly something we learned painfully), there isn't really any real comment on how we can make market edge discovery process actually better methodology wise. It's not an easy answer for sure (or if there is even an answer and if so, would anyone really share it?) but I dunno just my 2cents.


r/algotrading • • 13h ago

Strategy Week 1 of a three-bot race, what broke, what I dropped, and a question about news risk on open trades

Thumbnail github.com
3 Upvotes

Last week I posted a three-bot race, with one rule written in advance deciding whether any of them ever gets real money. Here's the first week, including the bits that didn't go to plan.

The bots (week of 30 Nov, demo only)
Bot A (intraday FX): 10 trades, +7.4R. Sounds great, but nearly all of it came on one day. Take out 1 Dec and it's −4.9R.

Bot B (intraday index): 38 trades, +1.2R, or +0.03R a trade. With a flat slippage haircut of 0.05R a trade, it goes slightly negative. Profit factor is 1.12, below the 1.2 bar.

Bot C (the challenger): 2 trades, −0.37R. Its first live signal was missed because of a timing bug, which is now fixed and logged. Its first real orders went through fine.

None of them is anywhere near qualifying. That's expected after one week.

Changes from your feedback, all logged with the date and the trade counts at the time.

No more checking every week until something passes. There's now a single decision date, 1 June 2027. On that date, all three bots get resampled over the same weeks, and any winner has to beat the 95th percentile of the best of the three, not just 2 standard errors on its own. Thanks to whoever suggested this; it was the best critique the rule has had.
Clustered slippage scenario. The same total cost as the flat haircut, but piled onto stop exits on high-volatility days. Bot B passes the 5% daily limit with flat slippage but breaches it on 1 Dec under the clustered version. That's useful to know now, not later.
Concentration and regime lines for each bot: results without its best day and best market, and results outside its main volatility regime.

What went wrong
Bot A lost −1.74R on a trade with a 1R stop. The stop and the sizing were both correct. The trade was still open when the US jobs numbers came out, and price jumped 33 pips straight past the stop in five seconds. The bot's news filter only blocks new entries; it doesn't protect trades already open. I haven't fixed it, because that would change the bot and restart its clock. It's logged as an idea for a future version.

A paper test should have been dropped two weeks ago. The intraday momentum test had a rule to drop early if it was clearly below zero at any 50-trade check. That check was never actually built. When I ran it after the fact, a plain standard error said drop and a bootstrap said keep going. Since I was choosing after seeing the answer, I took the stricter reading and dropped it, backdated to 24 Nov, and logged it that way. The checkpoint now runs automatically on every test.

Still going
Opening-range breakout paper test: 127 of 538 trades, +0.38R a trade. It passed its 50- and 100-trade checks. The 95% range by day clears zero, but by week it doesn't yet. It was also positive outside its main volatility regime (17 trades). Interesting, but nowhere near proven.
Trend following: I now report it mark-to-market (−24.2R), not just closed trades (−30.4R), because only stopped-out losers have closed so far.

My question for the sub
How do you handle scheduled high-impact news for trades that are already open? The choices I can see:
Close everything a few minutes before the release.
Leave them and accept the gap risk as part of the strategy.
Only close trades that aren't yet far enough in profit to absorb a gap.
Option 1 is the cleanest, but it changes the strategy's returns. Option 2 is honest, but it means stops aren't really limits. If you've tested this on intraday FX, I'd love to know which held up after costs.


r/algotrading • • 19h ago

Strategy How do you think 23/5 trading will affect existing algorithms?

9 Upvotes

As you may know, major US exchanges are moving towards a 23/5 trading schedule on Dec 6. I run a couple of profitable strategies, most of which I developed with backtesting data back until 2010. My algos trade the futures market on NQ, ES, GC, and SI (with a variety of NY market, Asia, and London sessions). I was wondering, to anyone else who runs futures algorithms, how do you think the major stock exchanges launching 23/5 would affect algorithm performance? Part of me thinks a robust algo should survive, but there inevitably would be volume differences especially for overnight and NY open. Of course, I'm aware no one can predict the future, but just trying to gather some opinions and viewpoints from others.


r/algotrading • • 1d ago

Data How to access data for backrests

11 Upvotes

Hi all, I have been working to find a viable strategy for about 9 months now. I have been using free sources of data until now. But I realise I need better data to find an edge. Therefore I am asking you guys, where is the best data available (free or payed) and what data do you use?


r/algotrading • • 23h ago

Strategy tested 148 "warning signs" before a 10% crypto drop. the ones that worked were still wrong most of the time

1 Upvotes

so i wanted to know if anything actually warns you before SOL, ETH or BTC drops 10% in a few days, since those moves keep wrecking one of my paper bots.

tested 148 warning signals on 2 years of 15m data. locked the rules before testing, then checked the winners on 6 months of data it never saw. 7 survived. sounds good until you see they're still false alarms 62 to 83% of the time. when they do catch one they fire roughly 10 to 35h early with most of the move still left, so not useless, just really noisy.

funding, long/short ratio and taker flow added basically nothing. honestly didn't expect that.

the part that annoyed me: i used the best ones to make the bot sit out risky days. it passed on the unseen 6 months (2 of 24 combos). then i checked the 6 months before that and the same filter was worse on all 3 coins. so i'm not using it, probably just a regime that happened to fit.

anyone found a way to cut false alarms on this kind of thing without overfitting to one period? what would you test next?

(Paper research only, not financial advice.)


r/algotrading • • 1d ago

Other/Meta What is the most accurate way to estimate the volatility of a single day of a stock's return?

5 Upvotes

If i wanted to estimate a stock's volatility on a single day, but don't have intraday/high frequency data what is the best method to use?


r/algotrading • • 1d ago

Strategy Anyone built an event-driven bot around Trump's Truth Social posts?

1 Upvotes

I built an app called VoxTrade that flags market-related Truth Social posts and the tickers they mention, mostly using AI to figure out which posts actually involve a company. It made me curious whether anyone's tried trading these posts algorithmically.

The hard part seems to be speed. By the time a post gets picked up, parsed and matched to a ticker, I'd guess a lot of the move is already done. For anyone who's tested this, how fast did your pipeline need to be for it to work, and was an LLM fast enough for detection or did you have to use something simpler?


r/algotrading • • 2d ago

Strategy SPY Long/Short Reversion Since 2018

Post image
29 Upvotes

Fun with minute data.

The black line is just traditionally trading in and out, the green line is what happens when you keep the profits in (excluding dividends/reinvestment) obviously this exposes you to the same drawdown as SPY but I don't particularly care about that. Yellow line is buy and hold.

Buy and hold over this period was 192.26% vs 824.91% and 1689.67% respectively.

62.13% win ratio, an average of 0.29c profit per trade.

(It's 2018 because of databento, not me).


r/algotrading • • 1d ago

Data Where to get historic lvl2 for US equities?

3 Upvotes

For backtesting purposes, I'm looking for apis that provide historic order book + tape data for US equities. What would be your recommendations?


r/algotrading • • 2d ago

Strategy Does anyone know how the Polymarket crypto bots work at a low level?

4 Upvotes

Ref: https://polymarket.com/@almach and others

Been trying to reverse-engineer them for weeks and getting close, but full emulation.

Stats:

- Latency is really that much of a problem: p90 is sub 100ms where p50 is <50ms per execution.
-- Fastest venue is Binance -> my server
- ~50 bots have been fully learned, but not their triggers. i.e., have emulated their orders but they're ahead of us in the queue and cancel their orders randomly - something that isn't fully understood. It makes profit per share go from my current -0.5-1c per share to their profit of ~1.2c per share.

- Latency at L=0ms does not turn it into a profitable trade per share; it is not a latency issue but a cancellation trigger and queue issue.

If anyone knows anything, wants to pair on this, or has something else, shoot me a DM.


r/algotrading • • 2d ago

Education New Algo learner

1 Upvotes

Hello traders,

I am a beginner, know the basics of stock market.(Indian Market)

Curious & eager to learn about Algo trading.

Anyone who can give insights on Algo trading like its pros/cons, how to start from scrath when you have no idea about coding thing.

Where to start learning or find related material beginner friendly.

Looking for a pathway to learn Algo trading.

THANKYOU!! all in advance to every person contributing any related knowledge.


r/algotrading • • 2d ago

Strategy ETH 1h long-only system backtested 2016–2026, looking for people to pick holes in it (reposted with method)

Thumbnail gallery
32 Upvotes

Posted this earlier but it got removed, probably because I only gave results and didn't explain how it was tested. So here it is again with the method. I'm not selling anything. I'd just like it criticised before I trust it with real money.

What it is

  • ETH perps, 1h candles, long only
  • Momentum/trend-following, built from a couple of standard indicators plus a daily trend filter
  • Fixed 12% stop, and the exit depends on market conditions
  • In the market about 9% of the time, average hold around 20h
  • I'm keeping the exact rules to myself for now, but I'm happy to answer anything about the testing

How it was tested

  • Hourly data: Bitfinex ETHUSD for 2016–17, Binance spot for 2017–19, Binance perps from 2020
  • Signals only on closed candles, no lookahead, and the daily filter uses the previous day's close
  • Fees of 0.045% per side, plus funding from 2020 onwards
  • Most of the development was done on 2020–26. 2016–19 was added afterwards as a check, and I didn't change the parameters for it
  • Random-entry test: same number of trades and same hold times, but random entries. None of the random runs beat it on the 2016–17 data
  • I also checked parameter neighbours (it's not a single sharp peak), Monte Carlo reshuffles, and 15m/2h/4h timeframes (worse)
  • It's been running in paper mode live

Results, 2016 – Oct 2026

CAGRMax DDSharpe
Strategy 1x56%−29%1.42
Strategy 2x115%−54%—
Buy & hold ETH64%−94%1.00
S&P 50015%−34%0.88

409 trades, 51% win rate, profit factor 2.16.

2020–26 only: 1x gives 48% CAGR, −18% max DD and Sharpe 1.58. 2x gives 105% CAGR, −34% DD and Sharpe 1.55.

[charts: growth vs ETH/S&P, returns by year, results by era, equity curve]

Things that worry me

  • The top 10 trades make up about 46% of the profit, so it depends on catching big moves
  • The −54% drawdown at 2x was three stops in a row in Dec 2017 – Jan 2018
  • It was weak from 2017 to 2019: 22% a year, though ETH itself was down 36% a year then
  • I tried a lot of variations along the way (shorts, other timeframes, add-on filters) and none of them helped. That makes me think the core is real, but it also means I've done a lot of testing on the same data
  • I tried the same rules on forex and on 14 stocks/ETFs and got nothing, so the edge seems to be specific to ETH

What I'd like to know

  • What would you check that I haven't?
  • Is ~400 trades over 10 years enough to trust it?
  • Has anyone seen ETH-only edges like this hold up, or fade, once they went live?

r/algotrading • • 3d ago

Strategy 70% return in 3 months, from 515 trades, market neutral L/S stock portfolio. Time to move a bit more $$ from the investment portfolio to the trading portfolio...

Thumbnail gallery
310 Upvotes

9 years after discovering the stock market, and years of looking for patterns and probably thousands of hours backtesting... I believe I've finally found a good edge, which works in all market environments.

70% return in 3 months, using ~4x leverage (through CFDs). Sortino 5.81. Sharpe 3.42.

Almost always (close to) market neutral, so don't really care about market direction (though long/short ratio can vary from 0.5 to 1.5).
All positions opened at the end of the day, manually(!!).

Long part of the portfolio consisting of 1-6 positions (usually 4-5) using the final trading algorithm (momentum-based trading, zero fundamentals). Selected from US stocks wit volumexprice above 200 million, or very liquid ETFs.
Holding time is usually 1-3 days, but sometimes extended to over 1 week.

Short part of the portfolio is about 9-13 positions, chosen using fundamental analysis. Holding time varies a lot, but usually many weeks/even months (though the exact entry and exit still uses the algorithm).

This trading portfolio was a small percentage of my normal, long-only investment portfolio... Time to add a bit more $$ to it!

Note: "The Value Added Monthly Index (VAMI) is a statistical figure that tracks the daily, monthly, quarterly performance of a hypothetical $1000 investment."

Edit:
-This includes all IBKR fees and overnight funding already.
-Total return on second screenshot (VAMI) i different because today's trading P/L is still not available to view there.

Edit2:
-Portuguese living in the UK, so CFDs are legal and available on IBKR. Can do the exact same (with lower leverage) on a normal margin account, though. Or only long and un-levered.

Edit3:
-Typically I use sector ETFs for long positions, if possible. If not enough ETFs don't abide by the algorithm rules, I use individual shares, each at 0.5x weight of the ETF weight.

Short positions are on individual shares only, and about 0.3x long ETF weight.


r/algotrading • • 3d ago

Other/Meta RIP Legend. Warren Buffet 1930-2026

Post image
142 Upvotes

r/algotrading • • 2d ago

Education Any books for learning about stock market strategies and indicators?

1 Upvotes

I am slowly getting into algo and day trading and want to learn more. Right now I have been making simple bots that day trade based on price swings but want to learn about different strategies and indicators I could implement into my bots. Are there any good books for a beginner to learn about things like VWAP, RSI, EMA etc. for a beginner? basically I would like to learn all the different market and algo trading terminology.


r/algotrading • • 3d ago

News Man of patience ( Warren Buffett)

Post image
13 Upvotes

He changed the way I think about the stock market. My favorite quote from Warren Buffett is:

​"An idiot with a plan can beat a genius without a plan."

​Goodbye, legend—rest in peace. Your knowledge will live forever.


r/algotrading • • 3d ago

Strategy I pre-registered 105 MNQ intraday tests for a 50K eval. The ideas that worked for years faded in 2024+, and a recent-looking breakout failed the holdout.

3 Upvotes

I spent the last stretch looking for a simple MNQ intraday idea that could survive a 50K futures evaluation with a $2,000 trailing max-loss limit (Lucid's rules). Paper research only. Nothing was traded live.

Every test was written down before I ran it. I used a 2024-and-later primary gate, a random-entry baseline with the same exits, and a Bonferroni correction as the try count grew. By the end I had 105 counted tests.

The momentum ideas that looked solid from 2011 through 2023 decayed in 2024+. On one of the better ones, first-payout odds were about 63%, 69%, and 86% in the 2011-15, 2016-19, and 2020-23 blocks. From 2024 through May 2026 those odds were 0%. The gross edge per trade fell from about $17-$30 down to about $7, which is roughly the size of costs, and the edge over random entries was about +$0.25 per trade (p = 0.49). Every rolling evaluation in that window blew up before reaching the +$3,000 target.

I also checked whether this was just bad data. Over about two and a half months of overlap, real NinjaTrader MNQ futures matched our stand-in data closely on returns, volatility, opening ranges, and direction. So the 2024+ fade is most likely real, not a data artifact. The overlap is only late 2026, so it cannot prove the match held in 2024-2025.

One plain 15-minute opening-range breakout, used as a control, was the opposite pattern. It was weak in 2011-2019 and looked strong in 2024 through May 2026. I did not pick it just because the recent window looked good. I pre-registered a separate "recent-regime only" test on an untouched June-November 2026 holdout, with the earlier failure stated up front.

It failed. On the stand-in data it lost $5,141 and was worse than random entry. On real NT8 data, from mid-September through November, it also lost money ($1,223 after costs). The drawdown was $2,788, past the $2,000 trailing limit, and a single evaluation started on day 1 would have been breached. On 24 days both data sets took a trade, they took the same direction on 23.

The lesson for me: an edge that worked for years can just stop. A recent-looking one can stop too. Holdouts and baselines are what catch it. I parked this search.

After a 2024+ decay like this, would you keep testing the same family on a slower timeframe, switch to a different index future, or treat momentum and opening-range breakouts as retired for now? What would you test next, and what gate would you use to decide?

(Paper research only, not financial advice.)


r/algotrading • • 2d ago

Infrastructure AI for backtesting?

0 Upvotes

I've been building and testing systems for decades. Used Metastock and Tradestation back in the day, Wealth Lab, Amibroker, did my own stuff in R and Python.

But lately I discovered that I can upload some historical data files to Claude, tell it my strategy and parameters, and it backtests and even optimizes in minutes and gives me full results.

But can I trust this? Too chicken to trade these for real yet. Anybody successfully use AI for backtesting/optimization?


r/algotrading • • 3d ago

Other/Meta Another month (update)

Post image
10 Upvotes

Last month, I shared the results of my first full month running my own breakout strategy with real money. November is now in the books, and it turned out to be an even better month despite taking fewer trades.

November results:
- Net P&L: +$1,698.58
- Closed trades: 10
- Win rate: 60%

Combined results after two months:
- Net P&L: +$2,629.34
- Closed trades: 27
- Win rate: 51.9%

Obviously, 27 trades is still a very small sample size, and I’m expecting tougher months along the way.
Would you guys be interested in seeing monthly updates on my live trading journey?

I’d be happy to document the entire process, including the losing months and drawdowns, rather than just sharing the good results.

Curious to hear what you guys think!


r/algotrading • • 4d ago

Strategy I tested selling Kalshi 15 minute BTC contracts when an 85c bid faded

13 Upvotes

I wanted to see what happens if I sell a Kalshi 15 minute BTC contract after the bid gives back a lead. I bought YES when Coinbase BTC was at least $25 above Kalshi’s settlement cutoff and the five-minute move was up at least +0.03%. I flipped the rules for NO. I restricted entries to only two to seven minutes left. If a contract I held had a bid of at least 85c and later dropped to 66c or less, I tried to sell. Otherwise I held to settlement.

My first backtest made +$413.46 PnL after fees on 739 closed positions, with a -$21.02 max drawdown. The early exit closed 20 of those positions. Then I ran 100 variants that changed the buy limits. All 100 reported gains, from +$81.47 to +$517.05. The top result used my original settings. Its reported PnL leaves out about $13.32 in entry fees on those open contracts.

I tested buy-limit floors from 5c to 45c and ceilings from 47c to 95c. The floor can raise the limit I send on a cheap order, and the ceiling caps what that order can pay. At the original 5c floor, a 78c ceiling still came back at +$505.54. Across all floors, the 47c ceiling averaged +$177.36 and the 95c ceiling averaged +$454.55. The Sharpe check that accounts for trying 100 settings cleared its cutoff.

I shuffled the timing of the Coinbase readings 100 times, kept Kalshi’s prices fixed, and reran the grid each time. The best shuffled result was +$189.19. Zero of the 100 matched the real-timing best of +$517.05, for a corrected p-value of 0.0099. That comparison tests the Coinbase timing on these same markets.

I think this shape might have promise. I'll start very small with hard position and spending limits, a daily loss cutoff, and a kill switch.

Full Report