Learning Quant Finance the Hard Way: Unpacking berlinguyinca-trading-strategies

How a public time capsule of Python scripts tracks one developer's battle against a bear market, and why the codebase was eventually shuttered to protect novice traders.

7 min read • View on GitHub • More from freqtrade

An old, heavy mechanical trading desk abandoned in a corner, spooling paper tape onto the floor. This illustrates the deprecated, archaeological nature of the 2018 codebase.
The repository stands as an artifact of the 2018 crypto crash, preserving the early attempts of developers learning algorithmic trading.

Please be aware they are supposed to show off some of the indicators and concepts you can use with freqtrade and might not be great for investing purposes. So please use them on your own risk.

Key Takeaways

The 2018 Time Capsule

Most articles about open-source trading bots focus on deployment strategies or hypothetical returns. This repository is different. It is an archived, deprecated time capsule from the 2018 crypto crash. The story here is not about discovering the perfect trading algorithm. It is about a developer learning quantitative finance in public during a hostile market.

We can trace the code's evolution from naive, high-frequency scripts that actively lost money, to paranoid, low-frequency scripts designed purely for survival. Ultimately, the repository concludes with an ethical decision to deprecate the code so novice traders would not risk their capital on experimental scripts.

The Simple Illusion

The Freqtrade framework relies on the IStrategy pattern. A developer defines indicators, buy logic, and sell logic. The earliest commits reveal a bot appropriately named Simple. It executed 85 trades in backtesting but yielded a net negative return. The standard pipeline ingests OHLCV data, populates technical indicators using TA-Lib, and triggers execution logic based on simple crossovers.

The Freqtrade pipeline transforms raw market data into deterministic trading decisions.

Coding for Survival

As the 2018 market crashed, the strategies mutated. The technical pivot is most visible in the configuration blocks. Developers began utilizing the experimental sell_profit_only flag. This controversial setting forces the bot to hold depreciating assets indefinitely rather than trigger a stop-loss. It is the algorithmic equivalent of refusing to admit defeat.

"experimental": {
  "use_sell_signal": true,
  "sell_profit_only": true
}
An extreme close-up of a mechanical robotic hand gripping a heavy, cracked coin so tightly it warps. This represents the sell_profit_only configuration forcing the bot to hold losing assets.
The sell_profit_only flag effectively hardcodes the sunk-cost fallacy into the trading bot.

The Overfitting Trap

Comparing the early, chaotic bots to the later, highly restrictive bots reveals a common pitfall in quantitative finance. Developers often accidentally over-optimize their backtests to historical data. This creates bots that look perfect on paper but fail completely in live markets.

Strategy NameTotal TradesAverage Profit %Result
Simple85-0.33%Loss
ReinforcedQuickie2540.09%Break-even
ClucMay7201864.20%High Conviction

Archiving the Alpha

The repository was eventually deprecated. The author explicitly warned that these scripts were not suitable for actual investing. The community migrated to the official, governed freqtrade-strategies repo. This lifecycle highlights the value of failing fast in public, and knowing exactly when to turn the machine off.

WSJ hedcut-style portrait of Gert Wohlgemuth (berlinguyinca).