Featured image of post From $800 to $200/Day (Part 2): A Retail Trader's Deep Dive into Crypto Quantitative\nTrading & LynxCrypto Development Blueprint

From $800 to $200/Day (Part 2): A Retail Trader's Deep Dive into Crypto Quantitative Trading & LynxCrypto Development Blueprint

The liquidation mathematics of a 200-tier Martingale grid, scientific refinement of a 15-minute interval strategy, tech stack selection (Freqtrade/Hummingbot/vectorbt), crypto alpha research methodology, and the AI-driven development prompts for the LynxCrypto system.

Last post recap (full text): Yesterday I opened a ZECUSDT contract grid with 200 levels across the 800–2000 USDT range. One 100 U short lost, but the martingale contract grid made over 100 U, spot ZEC made 20 U, and the balance peaked at 1,080 U. After withdrawing 200 U, 880 U remained to roll. Target: turn 800 into 1,000 daily, withdraw 200.

This post’s theme: I’m not relying on luck. This piece is my own deep research — the math behind grids and martingales, how to scientifically design my “15-minute range strategy,” which tech stack to pick, where to find real Alpha, and finally the prompt I’ll deliver to the AI for the LynxCrypto system.

0. Three Buckets of Cold Water First (Expectation Management)

Before getting into any technique, let me lay out the three hardest numbers from my research. They set the tone for every decision that follows:

  1. The baseline for retail traders is losses. In a study of the Brazilian stock index futures market, 97% of retail traders who held for more than 300 days lost money; only 1.1% earned more than the local minimum wage (US$16/day). Chague et al. 2019, cited in Day trading - Wikipedia

  2. Pretty backtests ≠ future effectiveness. The latest preregistered experiment of 2026 (MinervaScore) found that a composite score combining the Deflated Sharpe Ratio, backtest overfitting probability, and four other robustness checks has almost zero predictive power for future returns (Spearman ρ=0.013, p=0.40). Equity Strategy Backtesting: MinervaScore (arXiv:2608.23808)

  3. Publication is decay. The single variable “publication year” explains 30% of the variance in factor Sharpe decay — any publicly available strategy you can find online is most likely already on its way to失效 (失效 / decay). Why and how systematic strategies decay (arXiv:2105.01380)

Taken together, these three mean: “800 → 1,000 daily” (a 25% daily return) is not a “goal” — it’s a behavioral trap that forces you to add to losing positions on down days. The rational objective function is “survive long + slightly positive expectancy”; profit is a byproduct of staying alive. All system design below is subordinate to this premise.

1. My 200-Level Grid: Understanding the Math First

1.1 The Structural Essence of a Grid

My parameters: 800–2000 USDT, 200 levels, arithmetic, step 6 USDT. Here’s a容易被忽略的细节 (detail that’s easy to overlook): for an arithmetic grid, the percentage step at the bottom (0.75%) is 2.5× the top (0.30%); switching to a geometric grid gives ~0.459% per level and naturally “heavier buys at the bottom,” which better suits high-volatility instruments. Arithmetic and Geometric grid types — Gainium

The real profit per level must clear the fee hurdle. Bybit’s official formula: profit per level = spread × contracts per level × completed levels − fees; the contract taker rate is 0.055% (VIP0), two sides ≈ 0.11% — any level with gross margin below 0.11% is working for the exchange. Bybit itself caps the maximum number of levels to guarantee “grid profit > fees.” P&L Calculations (Futures Grid Bot) — Bybit Bybit Trading Fee Structure

There’s also a chronic bleed: perpetual funding every 8 hours (00:00/08:00/16:00 UTC). A 50,000 U notional grid position at a modest +0.01%/8h rate gets drained ~450 U/month; when rates spike to +0.10%/8h during extreme moves, that’s 45% of principal per month. Pionex Futures Grid 说明 What Are Funding Rates — Cube Exchange

1.2 The Liquidation Math of Martingale Addition (I Calculated It Myself)

The most valuable part of this research: I modeled and calculated the liquidation price for “200 levels + martingale addition” myself. Model (note: my inference, not quoted from any source): margin at level i is M₀·m^i (m = addition multiple), leverage L, average cost after full grid P̄, full-account liquidation approximated as:

1
P_liq = (Q·P̄ − M_total) / (Q·(1 − mmr))

Q = total position size, mmr = 0.5% (in practice it increases with position tier, so this is optimistic — real liquidation is closer).

Scenario: steady drop from 2000, buying the entire long grid to completion:

SchemeLeverageAvg CostLiq PriceMeaning
No addition (m=1)2x1,306~65618% below 800 before liquidation
No addition (m=1)5x1,306~1,050Liquidation inside the grid
No addition (m=1)10x1,306~1,182Liquidation inside the grid
m=1.12x1,932~971Liquidation inside the grid
m=1.15x1,932~1,553Wiped at −22.3% from 2000
m=1.25x1,963~1,579Wiped at −21%
m=2.05x1,988~1,598Wiped at −20%

Structural conclusion (derived directly from the calculation): as long as m>1, the geometric series forces nearly all margin onto the final levels near 2000 (at m=1.1 with a 10,000 U budget, the first level is ~0.00005 U, the last ~909 U — a 170-million-to-1 spread). Average cost gets pushed to 1900+. Even at 2× leverage, the liquidation price falls inside the grid. Martingale doesn’t widen your survival zone; it trades the nominal安全感 (sense of security) of “covering 60% drawdown” for the real exposure of “wiped at −22%.”

This explains why my martingale grid “made 100+ U” yesterday: its high win rate was designed that way. The optional stopping theorem has long rigorously proven: with finite capital (as always in reality), martingale loses in the long run; its payoff distribution is “frequent small wins + rare total wipeout.” The probability of a 6-loss streak in 200 trials is ~84%; a 10-loss streak (loss = 1,023× initial bet) in 200 trials is ~11%. Martingale (betting system) — Wikipedia In institutional language, martingale grids “don’t safely recover losses — they delay and amplify them until a reversal comes or the account dies first.” Many prop firms explicitly ban this strategy. Grid Trading: How It Works and Where It Breaks — Audacity Capital

My改造清单 (remediation checklist) for the grid (from research + calculation):

  • Fix addition multiple at m=1 (equal lot per level); drawdown becomes linear and calculable.
  • Add a hard circuit breaker: if the grid’s floating loss hits X% of margin, flat everything — Audacity Capital calls this “the single most important control.”
  • Replace fixed 6 U spacing with ATR-based dynamic spacing: spacing = clamp(ATR% × 0.6, 1%, 4%); in practice, switching an ETH grid from 1.5% fixed to 1.0% (~0.6×ATR) roughly doubled fill frequency. Dynamic grid spacing with ATR — dev.to
  • Trend filter: use ADX to determine regime; disable range grids in trending markets (expanded next).

2. My “15-Minute Range Strategy”: From Intuition to Executable Design

My original idea was: use 15m K-line ranges to find bands that cover most volatility, calculate entry points at the risk/reward balance, go long/short both sides, reverse to short immediately after long ends, and use certain indicators to guard against one-way sweeps. After research, this idea was decomposed into five literature-backed decisions.

2.1 Defining the Range: Don’t Use Fixed Pips, Use Volatility-Adaptive Bands

Three industry-standard approaches for “historical-volatility-based bands”:

  • Keltner Channel: EMA20 ± 2.0×ATR(10). Uses ATR (smoother than std dev) and EMA (more responsive than SMA); the most ready-made structure for “volatility-adaptive ranges.” Keltner Channels — StockCharts ChartSchool
  • Bollinger Bands: SMA20 ± 2σ. Important empirical note: due to fat tails + serial correlation in price series, only ~88% (not the 95% normal assumption) of prices land inside the bands. Bollinger Bands — Wikipedia
  • Donchian Channel: N=20 high/low (Turtles used 20/55 dual periods). Donchian channel — Wikipedia

The academic work closest to my idea is Opening Range Breakout (ORB): Holmberg et al. set breakout thresholds based on return distributions and only enter when price crosses those thresholds, finding significantly positive returns on crude oil futures. Assessing the profitability of intraday opening range breakout strategies — Umeå University

Implementation decision: entry threshold = prev_close ± k × ATR(15m) or ±k × rolling range quantile, with k calibrated via parameter sweep — not pulled from thin air.

2.2 Breakout Following or Mean Reversion? Let Regime Decide for You

The most counterintuitive finding in my research: the default breakout-following rule is statistically unstable in academic tests; the contrarian (mean-reversion) usage actually shows positive returns. Lento et al. (2007) found no outperformance vs. buy-and-hold for standard Bollinger strategies; but Balsara et al. (2007) found contrarian channel-breakout rules with 0.5% costs still produced significantly positive returns. Bollinger Bands — Wikipedia (Note: evidence comes from daily stock/forex; cannot be directly extrapolated to crypto 15m, but the direction is worth respecting.)

Another warning: Donchian’s default parameters tested over 360 years of cross-market data with 4,887 trades achieved only a 35% win rate — “may be unprofitable after slippage.” Donchian channel — Wikipedia

Implementation decision: don’t use a single mode. Use a regime filter to pick one:

  • ADX < 20 (no trend): mean reversion —反向开仓 (reverse enter) at channel edges. The ADX 20/25 threshold is Wilder’s original setting. ADX — StockCharts ChartSchool
  • ADX > 25 (strong trend): breakout following only, and absolutely no reverse flips — exactly the “anti-sweep” guard I wanted.
  • 20–25 gray zone: reduce size or skip.
  • Multi-timeframe resonance: 15m signals only fire when 1H/4H EMA direction agrees (standard top-down convention). How To Perform A Multi TimeFrame Analysis — Tradeciety

2.3 “Reverse to Short Immediately After Long Ends” Is a Trap

My original stop-and-reverse design (always in market, instant long-to-short flip) has well-known structural problems: double whipsaw磨损 (wear) in ranging markets — “death by a thousand stops”; and each flip = close fee + open fee + double slippage, with crypto taker at ~0.055% one side, meaning a few flips on a chop day can swallow all expected profit. How To Manage Whipsaws — Optimus Futures Whipsaw in Trading — 5paisa

Implementation decision: allow “flat” as a valid position state. After closing, observe; a new-direction signal must pass ADX/multi-timeframe confirmation before entry. Flat is a合法持仓 (legal position).

2.4 Exit: Time Stop > Price Stop

QuantifiedStrategies’ backtests show: time stop is “the simplest and most underrated exit”, reducing drawdown, cutting exposure time, and resisting overfitting; fixed stops and trailing stops largely degraded strategy performance in their tests. When to Exit a Trade — QuantifiedStrategies

Implementation decision: after a breakout, force-exit if the target isn’t hit within N 15m candles; price stops only as disaster insurance (placed at 1×ATR beyond the band), not as routine exit.

2.5 Three Perpetual-Specific Items

  • Funding rate timing: only positions held at 00/08/16 UTC settlement points pay/receive funding. At +0.05%/8h that’s ~54.75% annualized cost to the paying side. Most 15m positions won’t跨结算点 (cross a settlement point), but log “signal direction vs. rate sign” to avoid holding longs across settlement during high positive rates. Cube Exchange Bimal Institute
  • Mark-price liquidation: liquidation triggers on mark price (which includes the funding-rate basis), not last trade price; funding payments continuously erode margin and pull the liquidation price closer. Backtests that don’t simulate mark-price rules simultaneously underestimate “wick liquidations” and overestimate “mark-price protection.” Cube Exchange
  • Extreme rates as反向信号 (contrarian signal): BTC aggregate funding was negative only 26 days in 2024 — persistent positive funding ≠ imminent reversal. But historically, extreme rates >0.1%/8h preceded 10–30% pullbacks (the latter is the source’s view,立场标注ed). Cube Exchange Bimal Institute

3. Tech Stack Selection (2025–2026, Battle-Tested)

I surveyed the GitHub API across frameworks (2026-09-04); the conclusion is clear.

3.1 Language: Python, No Contest

Freqtrade, Hummingbot, Jesse, OctoBot, vectorbt, vn.py — all Python; the pandas/NumPy ecosystem is directly available. TypeScript is CCXT’s源语言 (source language) and updates fastest, but the quant backtesting ecosystem is far weaker than Python’s; Rust (NautilusTrader’s kernel) belongs to latency-sensitive scenarios — 880 U doesn’t need it. CCXT GitHub NautilusTrader GitHub

CCXT is the de facto industry standard: TypeScript transpiled to 7 languages, covering 104 exchanges, unifying REST + WebSocket APIs, with built-in rate limiters and a unified exception hierarchy. Custom execution layer = Python + ccxt (asyncio). CCXT GitHub

3.2 Frameworks: Phase-Combo, Not Single Pick

PhaseToolRationale
Research / BacktestvectorbtVectorized backtest; official demo runs 10,000 parameter combos in seconds; built-in walk-forward and range_split out-of-sample comparison — ideal for “parameter plateau” analysis (pick flat regions, not spikes). vectorbt
Trend / Signal Strategy LiveFreqtrade (54k stars, highly active)Backtest + hyperopt (Optuna) + dry-run + Telegram control in one; ships lookahead-analysis to auto-catch look-ahead bias. Freqtrade
Dual-Contract Grid LiveHummingbot V2Critical constraint: Freqtrade forces Binance contract One-way mode (official docs state this plainly); only Hummingbot’s Binance perpetual connector supports both Hedge mode + testnet. Freqtrade Exchange Notes Hummingbot Binance connector
SkipBacktraderLast commit 2024-08-19; effectively unmaintained for 2+ years.

3.3 Exchange and Account Security

  • Fee primary source: Bybit contract VIP0 taker 0.055% / maker 0.020% (the only official source obtained this round; Binance/OKX fee pages were blocked by anti-scraping — use actual account rates in practice). Bybit Trading Fee Structure
  • OKX officially confirms spot + contract grid bots (Futures Grid). OKX Trading Bots
  • API key minimal permissions: contract trading only + IP whitelist + withdraw disabled; each bot on an isolated sub-account. This is Freqtrade’s official security recommendation. Freqtrade Exchange Notes
  • Dry-run first: Binance contract testnet (Hummingbot supports), Bybit demo mode (Freqtrade supports) — go live only after passing.

3.4 7×24 Operations

门槛极低 (very low barrier): Freqtrade minimum 2GB RAM / 2 vCPU; a 2C2G overseas VPS suffices (avoid Binance-restricted regions). Docker deploy + systemd/tmux daemon + NTP clock sync (mandatory — clock drift directly breaks exchange signatures) + Telegram alerts (Freqtrade ships /status /profit /forceexit built-in). Freqtrade Installation Freqtrade GitHub

4. Where to Find Real Alpha (and What to Honestly Expect)

4.1 The Practical Approach to “Scan Every Strategy Online”

Not by reading every TradingView script — instead, structure the screening: Quantpedia catalogs 1,000+ strategies, 2,000+ papers, 800+ out-of-sample backtests, filterable by asset class / rebalance frequency / in- vs. out-of-sample performance, then batch-reproduce via a unified engine. Quantpedia Screener GitHub has open-source funding-rate arbitrage (e.g. aoki-h-jp/funding-rate-arbitrage). TradingView community scripts are good for signal inspiration, not for live deployment.

4.2 Crypto-Validated Alpha Categories (Ranked by Retail Feasibility)

  1. Funding rate / cash-and-carry arbitrage: structurally deterministic. Academia confirms crypto basis deviations are larger than traditional FX, but converge over time — arbitrage is getting crowded. Fundamentals of Perpetual Futures (arXiv:2212.06888)
  2. On-chain flow signals: ETH net inflows predict returns and volatility at 1–6 hour horizons, and the pattern differs显著地 (significantly) from BTC. Return and Volatility Forecasting Using On-Chain Flows (arXiv:2411.06327)
  3. Momentum / cross-sectional momentum: 150+ academically recorded anomalies cluster almost entirely in illiquid small-caps and are pre-cost; they衰减 (decay) sharply post-publication — same in crypto small caps. “Paper backtest ≠ post-fee reality.” Market anomaly — Wikipedia
  4. Market making: retail is constrained by latency and inventory management; only low-frequency quote posting is feasible, with tiny capacity. Deep RL in Cryptocurrency Market Making (arXiv:1911.08647)

Warning from a反例 (counterexample): the widely trusted on-chain fundamental metric TVL was found to be “surprisingly irrelevant” to coin returns — no independent alpha. The Surprising Irrelevance of TVL (arXiv:2506.03287)

4.3 Research Pipeline (Every Trap标出 (marked))

1
2
Hypothesis → Data (CCXT / Tardis tick-level) → Vectorized backtest → Walk-forward OOS
     → Dry-run for weeks → Small-live → Scale up
  • Overfitting defenses: cap parameter-search iterations, fix OOS windows, log “number of attempts” into every report (MinervaScore approach); pick plateau regions on heatmaps, not peaks.
  • Look-ahead bias: run Freqtrade lookahead-analysis first, then discuss anything else.
  • Portfolio layer: crypto pair daily returns correlate ~60% — multi-coin isn’t diversification; multi-strategy logic is (funding arbitrage vs. trend vs. mean reversion). Correlation without Factors (arXiv:2412.04263)

Realistic expectations: most strategies will失效 (decay); a few low-capacity edge strategies squeeze微利 (small profits); excess return comes from structural premiums (funding, basis, liquidity provision) not prediction ability. The better result under academic strict OOS protocols is 44.55% annualized, Sharpe 1.55 — that’s anupper bound reference, not a retail baseline. From Hypotheses to Factors (arXiv:2604.26747) Shifting the goal from “predict direction” to “collect structural premium” raises survival probability by an order of magnitude.

5. LynxCrypto: The AI Development Prompt

The prompt below is my next construction blueprint — feed it to an AI coding agent (Claude Code / Kimi Code) to build my quant system from zero.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# LynxCrypto — Personal Crypto Quant Trading System Development Prompt

## Role and Objective

You are a senior quant trading engineer. Design and implement from scratch a personal crypto quant trading system named **LynxCrypto**.
The core objective is not "predicting direction" but: **collecting structural premiums from the crypto market (grid volatility harvesting + funding rates + range mean reversion) under strict risk controls, and continuously incubating new strategies on the research side**.

Hard constraints (non-negotiable):
- Starting capital ~880 USDT; every strategy must pass backtest + walk-forward + dry-run before live deployment.
- System-level circuit breaker supersedes all strategy logic: if daily total loss hits 3% of account or a single strategy drawdown hits 15%, immediately flat all positions for that strategy and suspend for 24 hours, with a Telegram alert.
- **Martingale / any loss-averaging is permanently forbidden** (addition multiple must always equal 1); only fixed-lot or反马丁格尔 (anti-martingale) additions are allowed, and any addition/reduction must pass an独立风控审批函数 (independent risk-approval function).
- Leverage cap 3×; grid strategy leverage cap 2×.

## Tech Stack (Surveyed and Decided — Do Not Substitute)

- Language: Python 3.11+ (strategies, backtest, execution full chain)
- Exchange connectivity: CCXT (asyncio), start with one exchange only (Binance USDT-perpetual + spot); interface layer abstracted for later OKX/Bybit expansion
- Backtest: vectorbt (parameter sweep + walk-forward + range_split multi-sample OOS)
- Live engine: implement both and make swappable — (a) Freqtrade strategy plugin form (trend/signal class); (b) custom lightweight executor (grid class, needed for hedge-mode dual positions)
- Persistence: SQLite (orders, fills, equity curve, signal logs); schema versioned with code
- Config: YAML + Pydantic validation; API keys via env vars only, never stored in DB or code
- Alerts: Telegram Bot (open/close/circuit-breaker/daily equity report)
- Deploy: Docker Compose, systemd restart policy, NTP sync check inside container (startup self-check item)

## System Architecture (Module Boundaries Must Be Clear and Independently Testable)

1. `data/` — market data layer: fetch 1m/15m/1h/4h OHLCV + funding rates + mark prices via CCXT, persist as Parquet; incremental updates; data quality checks (gaps, duplicates, anomalous jumps).
2. `features/` — indicators and features: ATR, ADX, EMA slope, Keltner channel (EMA20±2×ATR10), rolling range quantile, funding rate sign and time-to-settlement. Fully vectorized; zero look-ahead; each indicator with unit tests (known-input hand-calculation comparison).
3. `regime/` — market regime classifier: ADX<20=range / ADX>25=trend / midpoint=gray zone; layered with 1H/4H EMA direction filter. Outputs a unified Regime enum consumed by strategies.
4. `strategies/` — strategy plugins (unified interface: on_bar → Signal/None; each strategy ships its own param schema, defaults,失效条件 (失效 conditions)):
   - `grid_neutral.py`: equal-lot contract grid, ATR dynamic spacing spacing=clamp(ATR%×0.6, 1%, 4%), re-center if drift exceeds 7%, breakout (price exits range) handled by circuit breaker, not chase orders.
   - `range_reversion_15m.py`: 15m range strategy — only active when regime=range; entry = price touches Keltner upper/lower band and reverses; exit = mid-band or time stop (N candles without reaching target); disaster stop at 1×ATR beyond band.
   - `breakout_15m.py`: only active when regime=trend; entry = prev_close±k×ATR breakout with multi-timeframe direction agreement; **no stop-and-reverse** — after flat, must re-confirm the full signal before re-entering.
   - `funding_carry.py` (Phase 2): skeleton for funding-rate premium hedging arbitrage; paper-only to start.
5. `risk/` — risk control hub (strategies cannot bypass): position caps, leverage caps, circuit breaker (daily loss / drawdown two levels), funding-rate timing check (expected cost when position跨结算点 (crosses 00/08/16 UTC)), consecutive-loss counter (3 straight losses per strategy auto-halves position).
6. `backtest/` — backtest pipeline: fees at maker 0.02%/taker 0.055% both sides, slippage default 0.02%; funding simulated at 8h settlement; liquidation simulated per mark-price rules; report must include: attempt count, parameter heatmap, walk-forward分段表现 (segment performance), in vs. out of sample comparison, max drawdown,破产概率 (ruin probability, Monte Carlo bootstrap resample).
7. `live/` — live executor: WebSocket feeds + REST orders, reconnect on disconnect, order reconciliation (local orders vs. exchange openOrders every minute), API exception categorized retry (NetworkError retryable / AuthenticationError immediate halt + alert).
8. `ops/` — daily equity snapshot, weekly report generation, strategy attribution (P&L decomposed by strategy/regime/time window).

## Development Order (Each Milestone Ships Runnable Code + Tests)

- M1: data + features + unit tests; can fetch and persist ZECUSDT history.
- M2: backtest pipeline + first range_reversion_15m report (all overfitting defenses included).
- M3: regime classifier + breakout_15m; walk-forward comparison report for both strategies.
- M4: risk hub + grid_neutral改造版 (改造 = remediated: equal lots + ATR spacing + circuit breaker).
- M5: live executor dry-run; run 2 full weeks with zero reconciliation errors before enabling live switch.
- M6: live switch (with --i-know-what-im-doing confirmation flag), Telegram alerts, daily report.

## Acceptance Criteria

- Every strategy backtest must include fees, slippage, funding, and mark-price liquidation simulation — missing any one = fail.
- Any strategy parameter must land in a "plateau" region on the parameter heatmap, not a spike; report must show the heatmap.
- Circuit breaker logic must have dedicated fault-injection tests (simulate flash crash, API disconnect, partial fill).
- Code has type annotations; ruff + pytest all green; each module < 400 lines.

Output first: project directory structure + detailed design (interface-signature level) of the data and features layers,
then await my confirmation before writing code.

6. Next Steps Action List

  1. Change the current martingale grid addition multiple back to 1, add circuit breaker — this is the only urgent modification to the live position from this research.
  2. Install Python + CCXT + vectorbt; get ZECUSDT data fetching working.
  3. Spin up the project with the LynxCrypto prompt; deliver M1 first.
  4. Abandon the “800→1,000 daily” objective function; switch to “maximize expected return subject to weekly max drawdown < 10%.” Keep the withdrawal discipline (withdraw profits as they come), but shift the anchor from “earn 200/day” to “monthly positive.”
  5. Log daily: what parameters were tried, how many backtests ran — write the “attempt count” into every backtest report to prevent self-deception.

Appendix: Methods and Key Sources

Methods: 4 parallel deep-dive research tracks covering 【grid/martingale math】【15m range strategy】【tech stack selection】【Alpha methodology】, close-reading 40+ primary sources (arXiv papers, exchange official docs, framework docs, GitHub API实测 data (实测 = empirical data)), key figures标注 as “fact / inference / opinion.” The liquidation table in §1.2 is自建模型计算 (self-built model calculation; inference, mmr=0.5% optimistic, real liquidation is closer).

Core sources (full 40+ in inline links throughout):

  1. Martingale (betting system) — Wikipedia — optional stopping theorem and losing streak probability
  2. P&L Calculations (Futures Grid Bot) — Bybit — official per-level profit formula
  3. Introduction to Futures Martingale Bot — Bybit — official martingale mechanics and risk disclosure
  4. Grid Trading: How It Works and Where It Breaks — Audacity Capital — grid failure modes and risk-control checklist
  5. Keltner Channels / ADX — StockCharts ChartSchool — standard parameters and regime thresholds
  6. Bollinger Bands — Wikipedia — academic validity evidence for Bollinger Bands (including contrarian usage)
  7. Freqtrade official docs / Exchange Notes — Binance One-way hard constraint, API minimal permissions
  8. Hummingbot Binance connector — Hedge mode + testnet support
  9. vectorbt / CCXT — backtest and exchange middleware
  10. [Why and how systematic strategies decay (arXiv:2105.01380)](https://arxiv.org/