Backtested paper trades

Trading Algorithm

A paper trading bot with backtesting and news based position sizing.

Trading Algorithm screenshot

This was a personal project to learn automated trading. It fits a line to recent prices, decides when to buy or sell, runs against paper money through Alpaca, and can change position size based on news it scrapes.

  1. 1

    The bot fits a line to recent price action and uses that to choose buy or sell points.

  2. 2

    Trades go through Alpaca using paper money so nothing real is at risk.

  3. 3

    Lumibot helped with backtesting and charts of past performance.

  4. 4

    A scraping step reads news so sizing can change when new information shows up.