r/algorithmictrading • • Oct 22 '26

Novice Beginner Looking to Learn Quantitative Trading, Backtesting, and Building a Trading Bot

Hi everyone! I'm a beginner interested in quantitative trading and algorithmic trading.

I'm interested in learning:

How to backtest a trading strategy using historical market data.

How to develop and combine trading signals.

How to use Python for backtesting and Monte Carlo simulations.

How to build a trading bot that can generate signals and eventually execute trades.

How to avoid common backtesting mistakes, such as overfitting, look-ahead bias, and unrealistic transaction costs.

How to properly paper-trade a strategy before risking real money.

I'm still learning, so I'm not expecting to build a profitable strategy overnight. My goal is to understand the entire process from scratch and gradually develop my own systematic trading strategies.

If you've built trading bots or worked on quantitative research projects, I'd really appreciate any advice on where to start, which tools or libraries to learn, and what a good first project would look like.

Any beginner-friendly resources, tutorials, GitHub repositories, or practical guidance would be greatly appreciated. Thanks!

14 Upvotes

12 comments sorted by

6

u/NiceJoJ Oct 22 '26

first project: pick one instrument and one dumb strategy, like a moving average cross, and write the backtest yourself in pandas.
it'll be bad but you'll actually understand fills, costs and lookahead. after that, libraries like backtesting.py or vectorbt make a
lot more sense.

before you start, lock away the last 2-3 years of data and don't touch it until you think you're done. that one habit prevents most
overfitting.

for monte carlo, the simple version is enough: shuffle the order of your backtest trades a few thousand times and look at the
drawdown distribution. it shows you how bad things can get with the same trades in a different order.

also expect most of your ideas to fail out of sample, that's normal and it's the whole point of testing.

Ernest Chan's Quantitative Trading is a good beginner book for the whole process.

1

u/PepMar000 Oct 22 '26

For a novice situation I would not use Python. Go for a trading software that already has an embedded & proven backtester module so that you can concentrate on strategy validation rather than coding the backtester or the live trading bot. Tradingview with Pinescript is easy enough to start with, or else Ninjatrader / Tradestation can be good calls as well

2

u/Far-Manufacturer-66 Oct 23 '26

I learned all of that with ChatGPT over a 6 month period. I recommend putting all those questions in a chat and then have it build an "Architecture Roadmap" to go from start to real money.

Tools you need and ChatGPT can help you set these up:
A cloud service to run your algo (so it can run without your pc)

Your GitHub repository

A brokerage account to paper-trade your algos/strategies on

VS Code to help you code in python, you won't need to learn it, ChatGPT will do it for you

Use Codex in VS Code and use ChatGPT chat to build the planning.

Use Codex is for just the coding (but it can plan too)

My first project was a simple algo using a strategy that I had GPT look up ("GPT give me trading strategies"). I had ChatGPT build this into an algo and had it run on Alpaca. I used Schwab thinkorswim visualizations to look at the trades to understand what the algo was doing. I ran the algo from DigitalOcean. After that, I moved to the more advanced topics.

I have zero coding knowledge and GPT says the replacement cost for all I built, if you paid programmers would be between $500k and $1.5 million.

1

u/mehatebananas Oct 25 '26 edited Oct 25 '26

This is the way. Though I think a Cursor subscription is well worth it over Vscode. It's basically Vscode but with integrated coding agents so you don't have to patch scripts manually. I use chatgpt to discuss ideas, review results and generate prompts that I hand off to the Cursor integrated agents that actually handle the actual coding and then feed those scripts back to chatgpt for auditing.

1

u/Far-Manufacturer-66 Oct 26 '26

Cursor - good tip. That seems like a massive time saver! I'm having ChatGPT make a "communications board" to have agents talk to each other but they can't communicate on vs code anyway. Cursor seems like it would make it so there would be no need for a "communications board".

1

u/Quantum_Karate 28d ago

Good list. The order I'd take it in: (1) one instrument, one simple rule, and write the backtest yourself in pandas so you see where costs and look-ahead sneak in; (2) add fees and slippage, then test on a period you didn't tune on; (3) paper trade the frozen rules and log every simulated fill next to what the backtest expected for the same dates; (4) judge it on trade count and worst drawdown, not win rate or weeks. 60–100 trades tells you much more than "green for a month."

1

u/[deleted] Oct 22 '26

[removed] — view removed comment