The Automated Trading Bot I Built Over the Weekend: More Lessons Than Profits

Over the weekend, I built a simple automated trading bot in Python. I didn’t use real money and ran it only in paper trading.

1. Data: I started by pulling minute bars through a brokerage API. Because of rate limits, it took longer than I expected.

2. Strategy: I only added moving average crossovers. Even when backtests showed profits, live results differed because of slippage.

3. Logging: By logging every order and fill, I could see why losses occurred.

The conclusion is that risk management is harder than automated trading. I learned that I need to look at maximum drawdown before returns.

For now, I’ll stick to paper trading only. I’ve organized the code on GitHub.

by 뉴비탈출60

5 answers

Slippage really can’t be ignored. I also got excited after seeing backtest returns before, but then hit -12% in my live account in just one month and quit lol. You’re doing the right thing by sticking with paper trading.

by 프롬프트장인632 · ▲0