Skip to content

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

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! 馃

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    spamPromotions and adverts

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions