~/veremiienkocontact

## case study / Bitlog · October–November 2026

I tested 78,000 trading signals against random entries

Bitlog is a private trading system I built for my own Binance Spot account. This is not a story about a profitable bot. It is about how I build software where a bug costs money, and how I check whether the product works at all.

Nothing here is trading advice or a claim of profitability. The result of the experiment was a small loss, and the conclusion is that the strategies have no edge.

~57,000
lines of TypeScript, 110+ commits in five weeks
468
tests, CI on three operating systems
1
runtime dependency (pg)
−0.53 USDT
realized result of the live experiment

01 What it is

Four parts: a scanner that looks for signals, an executor that places orders, a read-only dashboard, and Telegram for control and alerts. TypeScript on Node 24, PostgreSQL, systemd services on a VPS, the dashboard on Vercel. The only runtime dependency is the PostgreSQL driver; everything else, including the exchange client, is written against the platform.

02 Limits came before code

The live experiment had a budget of 12.40 USDT, a cumulative loss limit of 1 USDT, and at most 0.20 USDT at risk per trade. Profits do not refill the loss limit: once 1 USDT of losses is booked, the experiment stops, whatever the winners made.

Every trade runs from an immutable plan whose hash is checked before execution. Order identifiers are deterministic, so the same plan cannot produce two different orders, and a shared lock is taken before every purchase.

03 When the exchange does not answer

If a request to the exchange ends with an unknown result, the system never retries it. A retry could buy twice. It stops and waits for a manual reconciliation against the exchange. Stopping is cheap; guessing is not.

04 Who can touch the money

The dashboard and the monitor can only read. The trading key exists only in the executor. The ledger of real trades lives in its own database, separate from research and paper data.

05 Tests and operations

468 tests: 432 run without a database, the rest against a disposable PostgreSQL in Docker. CI runs on three operating systems, and the dashboard has browser tests. Backups are encrypted, stored off the server, and restored in a test every week. An external watchdog checks that the system is alive. Alerts are sent only when something happens.

06 The incident

On 21 October 2026 the system bought two positions at the exchange minimum and sold each of them two seconds later. Both were emergency exits, not strategy decisions.

The cause was the order of rounding. My pre-check subtracted the fee from the unrounded quantity and rounded afterwards. The exchange rounds the bought quantity first, then takes the fee in the coin, and the protective order rounds down again. The pre-check overstated the protectable quantity by one step, so after the purchase the protective order would have been below the exchange minimum.

The system did what it was built to do: it found the position could not be protected, sold it at market, and disabled new entries. I traced the cause, moved the calculation into one model shared by review, admission and the executor, and added five regression tests that replay both real cases and check the new minimum at 201 prices around the market for each pair. The post-mortem was written the same day.

07 The live result

By 10 November 2026: 10 purchases, 9 closed trades, 1 winner, −0.53 USDT realized. No position was left without protection; the first protective order was confirmed 2.7–3.7 seconds after each purchase. All ten plan hashes matched the approved ones, and every loss stayed within its planned risk.

08 The test against random entries

Small samples prove nothing, so on 12 November I asked a simpler question: do the signals carry any information? I ran all eight strategies over 30 coins and two years of hourly candles and compared each signal with 20 random entries on the same coin, in the same month, with the same stop and exit rule. Costs were 0.1% fee and 0.1% slippage per side.

Signals compared with random entries, by strategy
strategysignalshit targetrandomR after costs
All combined78,02732.9%34.0%−0.218
breakout-2020,13535.2%34.6%−0.143
trend-breakout-559,63334.7%35.2%−0.157
keltner-breakout6,23434.7%35.0%−0.158
ema-cross3,88033.4%33.4%−0.198
bollinger-reentry9,95030.6%30.6%−0.269
rsi2-trend13,73130.8%34.6%−0.273
ema-pullback14,15531.1%33.9%−0.309
rsi14-recovery30930.7%36.8%−0.273

78,027 signals reached their target 32.9% of the time. Random entries reached it 34.0% of the time. After costs the average signal lost 0.22R, where R is the planned risk of the trade. A market-regime filter, 4-hour and daily timeframes, and ranking coins by relative strength did not change the picture.

A caveat I keep in the original report: this diagnostic was not registered in advance, and signals come in clusters, so the statistics overstate significance. That makes the negative result more reliable, not less.

09 What happens next

The strategies have no edge, and I learned that for 0.53 USDT instead of a large sum. Two new hypotheses came out of the data. Because I formed them after looking, the past two years cannot count as proof. Both are registered in advance, with hashes of the code and the protocol, and are evaluated only on data that did not exist at registration. The verdict comes no sooner than a year from now.

10 What your team gets from this