AI Creates New Trading Indicators with Genetic Programming (Python) [Full Code]

In this video I test genetic programming for algorithmic trading an AI technique inspired by evolution that can automatically generate brand-new trading indicators. Instead of using classic indicators like RSI or MACD, the model creates thousands of formulas, backtests them on historical market data, and evolves the best ones across generations. I show how this works, how to implement it in Python, and how we trained a model that searches for profitable trading signals. The full Python code, trained model, and environment setup are available on GitHub so you can experiment with the parameters and test your own AI-generated indicators.

⚠️ These videos are educational and focus on algorithmic trading, AI, and Machine Learning, definitely NOT financial advice.

If you enjoy algorithmic trading, Python backtesting, and systematic strategies, consider subscribing to CodeTradingCafe, share your ideas… we can discuss and backtest.

My algorithmic trading courses: https://www.codetradingcafe.com/
The code: https://github.com/ZiadFrancis/Genetics_Trading_Part_1
📘 My Book: “Algorithmic Trading with Python”: https://a.co/d/6woMBHt