Skip to content

[Python] Backtesting.py to Alpaca live trading - $100k resultsΒ #1345

@yjq001

Description

@yjq001

Hey backtesting.py community! πŸš€

I've been using backtesting.py for strategy development and recently moved to live execution with Alpaca API. Here are my Feb 2026 results:

Performance Summary

Metric Value
Portfolio Value $100,512.31
Strategy Multi-timeframe momentum + MACD hybrid
Win Rate 67% (6/9 positions green)
Max Drawdown -2.1%

Top Performers

  • META: +6.7% (10 shares)
  • AAPL: +4.6% (43 shares)
  • GOOGL: +3.2% (32 shares)
  • NVDA: +2.3% (70 shares)

Warsh Fed Strategy

Overweight AI infrastructure (NVDA) and cash-flow stocks (AAPL) expecting bear steepening yield curve.

Code Setup

from backtesting import Backtest, Strategy

class WarshStrategy(Strategy):
    def init(self):
        self.sma = self.I(SMA, self.data.Close, 20)
        
    def next(self):
        if self.data.Close > self.sma:
            self.buy()

Would love to hear from other backtesting.py users doing live trading!

πŸ“‘ Live signals: https://t.me/NovaAlpha001
πŸ“‚ Full strategy: https://github.com/yjq001/nova-alpha-signals

backtesting.py is awesome - thanks for the amazing library! 🦞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions