Module 13: Trading Systems and Automation

Designing a Strategy

Chapter 2 of 12 · about 5 minutes

2.1 Start with a reason

Mint wanted to build a system and started by trying combinations of indicators: RSI below 30 with a MACD crossover, then Bollinger Bands with volume spikes, then three moving averages at once.

"I'll just keep trying combinations until something works," said Mint.

"That's the fastest way to fool yourself," said Hash. "If you try enough combinations, something will always look like it worked in the past, purely by chance. Start with a reason why a strategy should work. Then test whether it did."

2.2 Hypothesis first

A good strategy begins with a hypothesis: a clear explanation of why it should make money.

Weak starting pointStrong starting point
"This indicator combination looked good on a chart""Crypto trends persist because of momentum and crowd behaviour, so following trends should earn returns"
"I'll test everything and keep the best""Funding rates become extreme when positioning is crowded, so fading extremes should work in ranges"

A hypothesis tells you what to test, which conditions should favour the strategy, and what would mean it has stopped working.

2.3 Common strategy types

Strategy typeHypothesisWorks best inStruggles inRelated module
Trend followingPrices that are rising tend to keep rising for a whileStrong trendsChoppy ranges (Module 4, Chapter 8)Module 4
Mean reversionPrices that move too far tend to snap backRangesStrong trendsModule 4, Chapters 9 and 11
BreakoutMoves out of tight ranges tend to continueVolatility expansion after compressionFalse breakouts (Module 4, Chapter 5)Module 4
Carry and fundingEarn funding or basis while staying delta-neutralPositive funding marketsFunding reversals, exchange failureModule 7, Chapter 12
ArbitrageExploit price differences between venuesFragmented marketsCompetitive markets where gaps close fastModule 1, Chapter 6
Rebalancing and accumulationBuy and rebalance systematically over timeLong-term rising marketsLong declinesModule 12, Chapter 5

2.4 Where edges come from

An edge is a reason a strategy should earn more than random trading after costs. In crypto, possible sources include:

Source of edgeExample
BehaviouralCrowds overreact, chase trends, and panic (Module 12, Chapter 9)
StructuralFunding rates, liquidations, and unlocks create predictable flows (Modules 5 and 7)
Risk premiumBeing paid for taking risks others avoid, like selling insurance (Module 8, Chapter 6)
Speed or accessFaster execution or better data; hard for individuals to compete here
PatienceHolding through volatility that others can't tolerate

For most individuals, edges from speed are unrealistic: professionals and bots dominate there (Module 1, Chapter 9). Edges from patience, behaviour, and structural flows on longer timeframes are more accessible.

2.5 Writing precise rules

Rules must be precise enough to test. Compare:

Vague rulePrecise rule
"Buy when the trend is up""Buy at the daily close when the close is above the 50-day SMA and the 50-day SMA is above its value 10 days ago"
"Sell if it looks weak""Sell at the daily close if the close is below the 50-day SMA"
"Use a sensible stop""Initial stop at entry minus 2 × 14-day ATR"
"Size it reasonably""Size so that the initial stop risks 1% of the account"

If you can't write a rule precisely, you can't test it, and you can't automate it.

2.6 Keep it simple

Simpler strategies tend to be more robust: they have fewer parts that could have fitted random patterns in past data.

Simple strategyComplex strategy
Few rules and parametersMany indicators and conditions
Easy to understand why it works or failsHard to know which part matters
Less likely to be overfitted (Chapter 4)More likely to look great historically and fail live

"So the best strategy might be boring," said Mint.

"Usually," said Hash. "If a strategy needs eight indicators to work, it probably doesn't work."

2.7 Mint's first strategy

ComponentRule
HypothesisBitcoin trends persist on daily timeframes due to momentum and crowd behaviour
MarketBTC spot
TimeframeDaily, using UTC closes (Module 4, Chapter 2)
EntryBuy at the close when price closes above the 50-day SMA, and the 50-day SMA is rising
ExitSell at the close when price closes below the 50-day SMA
Initial stopEntry minus 2 × 14-day ATR
SizingRisk 1% per trade based on the initial stop; no leverage
Costs0.1% per trade in fees and slippage
Expected weaknessMany small losses in ranging markets

2.8 Try it yourself

Write a hypothesis for a strategy you'd like to test, explaining in two sentences why it should work. Choose a strategy type from section 2.3, and write precise rules for every component in Mint's table. Identify the market conditions where you expect it to struggle.

Key takeaways from this chapter

  1. Start with a hypothesis explaining why a strategy should work, not by trying random indicator combinations.
  2. Common strategy types include trend following, mean reversion, breakout, carry, arbitrage, and systematic accumulation.
  3. Edges come from behaviour, structure, risk premiums, speed, or patience; speed edges are unrealistic for most individuals.
  4. Rules must be precise enough for two people, or a computer, to apply them identically.
  5. Simpler strategies tend to be more robust than complex ones.
  6. Know in advance which market conditions your strategy should struggle in.