How to Start Algo Trading as a Beginner: A Step-by-Step Roadmap

You do not need a maths degree or a fast server to start learning algo trading. You need a clear path: basics, rules, honest tests, practice, then code. Here it is, with what to practise at each stage.

By StockYatra Team
How to start algo trading as a beginner: roadmap — cover

In short

  • Stage 1: learn market basics: orders, candles, risk and position size.
  • Stage 2: write one strategy as plain-English rules.
  • Stage 3: backtest it honestly, with costs and out-of-sample data.
  • Stage 4: paper trade it for weeks with virtual money and a journal.
  • Stage 5: learn Pine Script, then Python, and automate only where your broker and regulator allow.

Algo trading attracts beginners with promises of "set and forget" profits. The reality is more interesting: it is a skill, built in stages, that teaches you how markets behave and how to test ideas honestly. This roadmap is the order we recommend, with what to practise at each step.

Five-stage roadmap: basics, rules, test, practise, automate
Most people who lose money with algos skipped stage 3 or 4.

Stage 1: Market basics (2–4 weeks)

Before any code, understand what you are automating.

  • Orders: market, limit and stop orders, and what slippage is.
  • Charts: candlesticks, timeframes, volume, support and resistance. Start with how to read a candlestick chart.
  • Indicators: moving averages, RSI, MACD, and when they fail. See SMA vs EMA and RSI and MACD.
  • Risk: how much to risk per trade, and why a 50% loss needs a 100% gain to recover.

Stage 2: Write one strategy as rules (1 week)

Pick one idea and write it so a stranger could follow it without asking you anything. For example:

  • Entry: buy at the close when the 9-period EMA crosses above the 21-period EMA, but only if RSI(14) is below 70.
  • Exit: sell at the close when the 9-period EMA crosses back below the 21-period EMA.
  • Risk: risk no more than 1% of the account per trade.

In the StockYatra app you can build exactly this in the no-code rule builder, or in Pine Script:

//@version=5
strategy("EMA cross with RSI filter", overlay=true)
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
r = ta.rsi(close, 14)
plot(fast, "EMA 9", color=color.green)
plot(slow, "EMA 21", color=color.red)
if ta.crossover(fast, slow) and r < 70
    strategy.entry("Long", strategy.long)
if ta.crossunder(fast, slow)
    strategy.close("Long")

Stage 3: Test it honestly (2 weeks)

Backtest across several stocks and timeframes, with costs. Keep some data aside and test on it once. Read the trade count, drawdown and profit factor, not just the return. The full method, with a worked example, is in how to backtest a trading strategy.

Stage 4: Practise live with virtual money (4–8 weeks)

Follow the rules on live practice charts and log every trade: what the rule said, what you did, the result, how you felt. This is where you discover whether you can actually follow your own system, and how it behaves in markets your backtest did not include.

Stage 5: Code and automate, within the rules

  • Pine Script first. It is designed for chart-based strategies and is easy to read. Learn variables, ta.* indicators, if conditions and strategy.entry / strategy.close.
  • Python next for data handling, larger backtests and broker APIs.
  • Automate only where allowed. In India, through your broker under SEBI's framework (rules). In Nepal, retail automation on TMS is not permitted today (why). In the US, through brokers that offer APIs.

The skills you are really building

Six skills: market structure, risk sizing, coding basics, statistics, backtesting, the rules
Coding is one skill of six. The others decide whether the code is any good.

Your practice toolkit in StockYatra

StageWhat to use in the app
BasicsThe Academy's free courses and quizzes in English, Nepali and Hindi; charts on NEPSE, NSE and US practice markets
RulesThe no-code rule builder (indicators, crosses above/below, AND/OR, stop-loss and target)
TestingPro Chart backtests of 41 built-in strategies, your builds and Pine Scripts, with fees, drawdown and profit factor
PracticeVirtual coins, Market/Limit/Stop orders, long and short, and a trade journal for setup, mood and lessons
CodePine Script editor with 15 example scripts and line-by-line error messages
No-code rule builder in StockYatraPine Script editor in StockYatra
Build the rule without code, then read it as Pine Script: the same idea, two ways.

The guided version of this roadmap is on learn algo trading.

Key idea: The goal of the first six months is not profit. It is a tested set of rules you understand and can follow.

Key takeaways

  • Learn basics, then rules, then honest tests, then practice, then code.
  • Write one strategy so precisely a stranger could follow it.
  • Backtest with costs and an out-of-sample check.
  • Paper trade for weeks with a journal.
  • Pine Script first, Python later, and automate only where allowed.

Start the roadmap today, free

StockYatra is a free practice app for Nepal (NEPSE), India (NSE) and US stocks. Test 41 transparent strategies, write rules without code or in Pine Script, and backtest them on the chart with virtual coins. Nothing connects to a broker and nothing is real money.

Get StockYatra Learn algo trading

The algo trading series

StockYatra is an education app, not a broker, adviser or research analyst. Nothing here is a recommendation to buy or sell any security, to use any trading product, or legal advice. Rules and dates are summarised for learning; check the regulator's and your broker's current notices before acting. Practice prices are simulated and coins are virtual.

Frequently asked questions

How do I start algo trading with no experience?
Learn market basics first, write one strategy as exact rules, backtest it with costs, practise it with virtual money, and only then learn to code and automate it where your broker and regulator allow.
Which programming language should I learn for algo trading?
Pine Script is an easy start for chart-based strategies. Python is the common next step for data analysis, larger backtests and broker APIs.
How long does it take to learn algo trading?
Expect a few months to go from basics to a tested, practised strategy. Mastering it, including statistics and risk, takes much longer.
How much money do I need to start algo trading?
None to learn. You can do every stage except live automation with virtual money in a practice app.
Can I learn algo trading for free?
Yes. StockYatra's Academy courses, Pro Chart backtests, no-code rule builder and Pine Script editor are free to use with virtual coins.