r4lph.io

My AI Tests Famous Trading Systems

Free code from the series

Each week my AI agent rebuilds a famous trading system overnight, checks its own work, and reports the result, good or bad. The code from each episode is free: a TradingView Pine Script and the Python backtest.

Free, with no sign-up. This is an experiment in what AI agents can build and verify, not trading advice.

Episodes

Gann square of nine

Gann's levels did no better than random lines with the same spacing. Both held 40.6% of the time.

Get the code

Turtle Trading rules

Both systems lost almost everything at the original size. At a tenth of the size, System 2 made 3.0% a year. SPY made 10.4%.

Get the code

What each download has

A TradingView script
Pine Script v6. Paste it into the Pine Editor and see the system trade a chart. You do not need to code.
The Python backtest
The test from the video, with the checks the agent ran on its own work. Run it and compare the numbers.
The results
Each page gives the numbers after costs, next to buy and hold. Many famous systems do worse than their reputation.

All source on GitHub Watch on YouTube