Stock Trading Algorithm: Volume 1

This project is a basic trading algorithm built with Python.

Get the code on GitHub →

The strategy combines momentum and mean reversion techniques to adapt to different market conditions.

Momentum is captured using a dual moving average crossover (I'm looking at 10-period and 50-period).

Mean reversion is identified through Z-score analysis of the price relative to its rolling mean.

Trades are entered when both signals align.

I cannot say that this is suitable for beginners. I would look into the mathematics I'm using and then dive deeper into the code.