frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I wrote a Rust engine to backtest crypto candlestick patterns

https://piotrwilczek.com/crypto-patterns/
5•piotrwilczek•7mo ago

Comments

piotrwilczek•7mo ago
Hey HN,

As an algorithmic trader, I spend most of my time looking for quantifiable edges in the market. This time (a bit for fun) I wanted to check classic candlestick patterns that manual traders use—things like the "Morning star" or "Three White Soldiers." Is there any real, statistical "alpha" to be found in them?

To find out, I built a tool to rigorously backtest these patterns at scale. This project is a high-performance analysis engine that searches for these patterns across years of 1-hour Binance Futures data and measures their historical profitability.

What made this project especially interesting for me is that it was my first real project in Rust. I was able to build it much faster than I ever expected, largely because I used Cursor. Having an AI assistant that could explain Rust's concepts directly in my IDE was a complete game-changer. It felt like pair programming and dramatically shortened the learning curve.

The link goes to a static HTML report generated by the tool, summarizing the performance of various patterns.

A few technical details:

* Tech Stack: It's built in Rust using Tokio for parallelism when analyzing symbols, and serde/csv for data handling. The frontend is plain HTML/JS with static Tailwind CSS and ECharts.js for the interactive charts.

* The "How": The core challenge is comparing patterns that occur at wildly different price levels and volatility. To solve this, the matching logic uses Z-Score Normalization on rolling windows of data. This allows for a true "shape-based" comparison. It then uses a KNN-style search with a binary heap to efficiently find the top N closest matches without having to store them all in memory.

* The Data: ~8 MLN 1-hour candles from all Binance Futures symbols (~490) including delisted ones to avoid survivorship bias.

Of course, this is not financial advice, and past performance is not an indicator of future results. The goal was to explore a specific dataset for historical statistical edges.

I'd love to hear your thoughts, critiques, or any questions you might have. Happy to discuss the technical implementation or the results.

Geist Pixel

https://vercel.com/blog/introducing-geist-pixel
1•helloplanets•58s ago•0 comments

Show HN: MCP to get latest dependency package and tool versions

https://github.com/MShekow/package-version-check-mcp
1•mshekow•8m ago•0 comments

The better you get at something, the harder it becomes to do

https://seekingtrust.substack.com/p/improving-at-writing-made-me-almost
2•FinnLobsien•10m ago•0 comments

Show HN: WP Float – Archive WordPress blogs to free static hosting

https://wpfloat.netlify.app/
1•zizoulegrande•11m ago•0 comments

Show HN: I Hacked My Family's Meal Planning with an App

https://mealjar.app
1•melvinzammit•12m ago•0 comments

Sony BMG copy protection rootkit scandal

https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootkit_scandal
1•basilikum•14m ago•0 comments

The Future of Systems

https://novlabs.ai/mission/
2•tekbog•15m ago•1 comments

NASA now allowing astronauts to bring their smartphones on space missions

https://twitter.com/NASAAdmin/status/2019259382962307393
2•gbugniot•19m ago•0 comments

Claude Code Is the Inflection Point

https://newsletter.semianalysis.com/p/claude-code-is-the-inflection-point
3•throwaw12•21m ago•1 comments

Show HN: MicroClaw – Agentic AI Assistant for Telegram, Built in Rust

https://github.com/microclaw/microclaw
1•everettjf•21m ago•2 comments

Show HN: Omni-BLAS – 4x faster matrix multiplication via Monte Carlo sampling

https://github.com/AleatorAI/OMNI-BLAS
1•LowSpecEng•22m ago•1 comments

The AI-Ready Software Developer: Conclusion – Same Game, Different Dice

https://codemanship.wordpress.com/2026/01/05/the-ai-ready-software-developer-conclusion-same-game...
1•lifeisstillgood•24m ago•0 comments

AI Agent Automates Google Stock Analysis from Financial Reports

https://pardusai.org/view/54c6646b9e273bbe103b76256a91a7f30da624062a8a6eeb16febfe403efd078
1•JasonHEIN•27m ago•0 comments

Voxtral Realtime 4B Pure C Implementation

https://github.com/antirez/voxtral.c
2•andreabat•30m ago•1 comments

I Was Trapped in Chinese Mafia Crypto Slavery [video]

https://www.youtube.com/watch?v=zOcNaWmmn0A
2•mgh2•36m ago•0 comments

U.S. CBP Reported Employee Arrests (FY2020 – FYTD)

https://www.cbp.gov/newsroom/stats/reported-employee-arrests
1•ludicrousdispla•38m ago•0 comments

Show HN: I built a free UCP checker – see if AI agents can find your store

https://ucphub.ai/ucp-store-check/
2•vladeta•43m ago•1 comments

Show HN: SVGV – A Real-Time Vector Video Format for Budget Hardware

https://github.com/thealidev/VectorVision-SVGV
1•thealidev•44m ago•0 comments

Study of 150 developers shows AI generated code no harder to maintain long term

https://www.youtube.com/watch?v=b9EbCb5A408
1•lifeisstillgood•45m ago•0 comments

Spotify now requires premium accounts for developer mode API access

https://www.neowin.net/news/spotify-now-requires-premium-accounts-for-developer-mode-api-access/
1•bundie•47m ago•0 comments

When Albert Einstein Moved to Princeton

https://twitter.com/Math_files/status/2020017485815456224
1•keepamovin•49m ago•0 comments

Agents.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
2•birdculture•51m ago•0 comments

System time, clocks, and their syncing in macOS

https://eclecticlight.co/2025/05/21/system-time-clocks-and-their-syncing-in-macos/
1•fanf2•52m ago•0 comments

McCLIM and 7GUIs – Part 1: The Counter

https://turtleware.eu/posts/McCLIM-and-7GUIs---Part-1-The-Counter.html
2•ramenbytes•55m ago•0 comments

So whats the next word, then? Almost-no-math intro to transformer models

https://matthias-kainer.de/blog/posts/so-whats-the-next-word-then-/
1•oesimania•56m ago•0 comments

Ed Zitron: The Hater's Guide to Microsoft

https://bsky.app/profile/edzitron.com/post/3me7ibeym2c2n
2•vintagedave•59m ago•1 comments

UK infants ill after drinking contaminated baby formula of Nestle and Danone

https://www.bbc.com/news/articles/c931rxnwn3lo
1•__natty__•1h ago•0 comments

Show HN: Android-based audio player for seniors – Homer Audio Player

https://homeraudioplayer.app
3•cinusek•1h ago•2 comments

Starter Template for Ory Kratos

https://github.com/Samuelk0nrad/docker-ory
1•samuel_0xK•1h ago•0 comments

LLMs are powerful, but enterprises are deterministic by nature

3•prateekdalal•1h ago•0 comments