StructureX

Home › Comparisons

Algorithmic vs discretionary trading: code or judgment?

Some traders write rules into code and let a computer place trades. Others look at the chart and decide. Most good trading sits somewhere in between: written rules, followed by a person.

Comparison · 7-minute read · Updated 2026-10-21

The short answer

Algorithmic trading means every rule is written in code. The computer checks the market and places the orders. You build and test the rules; the machine follows them.

Discretionary trading means a person makes each decision. You may have a plan, but you judge each chart in the moment.

There's also a middle path, often called systematic or rules-based trading. The rules are written down in plain words, and you follow them by hand. Most beginners start here.

Side by side

AlgorithmicRules-based by handDiscretionary
Who decidesCodeYou, from written rulesYou, case by case
Who places ordersThe computerYouYou
Emotions in the momentMostly removedReduced by the rulesFully present
Skills neededCoding, testing, dataA clear plan and a checklistExperience and self-control
Can it adapt?Only if you change the codeSome, within the rulesYes, fully
Main riskOverfitting, bugs, outagesBreaking your own rulesInconsistency
Easy to test?Yes, on past dataYes, on replayHarder

How algorithmic trading works

You write rules like: "If price closes above the last turning point, buy. Stop below the prior low. Risk 1%." The code runs on every candle. When the rule fires, it sends the order.

On TradingView, you can test rules like this with a Pine Script strategy and the Strategy Tester. See Pine Script strategy backtest.

How discretionary trading works

You look at the chart and ask questions. Is the trend clear? Is this level clean? Is there news in an hour? Then you decide.

Good discretionary traders still have rules. They just leave room for judgment, like skipping a setup on a messy day.

Algorithmic: strengths and limits

The good parts:

The limits:

Discretionary: strengths and limits

The good parts:

The limits:

Watch out for "bots that do it for you". Ads promising automated trading with guaranteed or huge returns are a well-known scam pattern. The CFTC has warned that AI can't turn trading bots into money machines. Check any offer at cftc.gov and investor.gov.

The middle ground most people need

Write your rules down first, in plain words:

Then follow them by hand, on past charts first. See how to write a trading plan and pre-trade checklist.

Once the rules are clear and tested, coding them is a natural next step if you're curious. Our course includes the full source code of the StructureX chart tool to learn from. It's source code, not a ready-made trading bot.

Which fits you?

  1. New? Start rules-based by hand. You learn why each rule exists.
  2. Enjoy coding and testing? Algorithmic trading can fit, as long as you test on data the rules have never seen.
  3. Experienced, with a long journal? More judgment can fit, because your records show where it helps.

Common mistakes

Questions

What is the difference between algorithmic and discretionary trading?

In algorithmic trading, rules are written in code and a computer places the trades. In discretionary trading, a person judges each trade. Rules-based trading by hand sits in between.

Is algorithmic trading better than discretionary trading?

Neither is better by default. Algorithms remove hesitation but can overfit past data and fail from bugs. Discretionary trading adapts but lets emotions in. Many beginners start with written rules followed by hand.

Can I start algorithmic trading without coding?

Some platforms offer no-code tools, but you still need clear, tested rules. A good first step is writing your rules in plain words and testing them on past charts by hand.

Are trading bots a scam?

Not all automated trading is a scam, but bots sold with promises of guaranteed or very high returns are a common fraud pattern. Regulators like the CFTC have warned about them.

Want the next step? We'll walk you through it.

Four free lessons by email, one every few days — each with a 10-minute exercise on a real chart.

Send Me the Free Lessons 4 short emails · No spam · Unsubscribe anytime

Or see the whole method, step by step:

See What’s Inside the Course Try everything free first. Decide when you're ready. · Open the free chart tool (works in the TradingView phone app)

One chart idea a day, in plain English. Follow along:

Follow on XFollow on TradingView