Skip to content
Wildflower
Join free
Automated trading and AI

Free Trading School · Level 7 · Course 7.11

Using AI chat tools to learn and code

Lesson 12 of 19 in Automated trading and AIModule 3: AI and trading

Advanced · Automated trading and AI

Using AI chat tools to learn and code

Wildflower Trading School · Lesson 7.11.3.3

Wildflower

AI chat tools can explain a trading idea in seconds and draft code in minutes. They can also be confidently wrong, in the same calm voice. By the end of this lesson, you'll know what these tools are good for and how they go wrong. And you'll know the checks that catch their mistakes before they reach a trade.

1 of 8

What you'll learn

  • Ask for explanations and drafts. Give exact rules before asking for code.
  • Spot confident errors. Tools invent functions and state wrong numbers calmly.
  • Check facts at the source. Use the exchange or your platform's help pages.
  • Test code on a chart by hand. Read each line and look for future prices.
  • Decide trades yourself. Its answer on price, size or risk isn't advice.

Exercise

  1. Ask a chat tool to explain one term from this course.
  2. Then check two facts from its answer at the source, such as the exchange's contract page or your platform's help pages, and note anything it got wrong.

Next: Judging a strategy you didn't write.

Quick check

  1. 1. Why can an AI chat tool be confidently wrong?

  2. 2. Code from a chat tool runs with no errors. What does that tell you?

  3. 3. Where should a contract's tick value be checked?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Judging a strategy you didn't write” is waiting next time.

Read the full notes

AI chat tools are useful for explaining ideas, drafting code from exact rules and suggesting bugs, but they write what's likely, not what's checked, so they can be confidently wrong; check facts at the source, check code against a chart by hand, and never ask them where price will go or what to trade.

  • An writes answers by predicting likely words. Good for: explaining terms, drafting code (, ) from exact rules you supply, explaining code line by line, and making checklists and test cases.
  • How they go wrong: invented functions or settings; wrong numbers stated calmly (such as a ); code that runs but uses future prices (); agreeing with whatever you suggest.
  • Checks: facts at the source (the exchange, the platform's help pages); code against a chart by hand (Checking your code against a chart, Coding mistakes to look for); read each line yourself; never paste passwords, logins or keys (Keeping your accounts and money safe).
  • Not for: where price will go, whether to trade or how much to risk (its answer isn't advice), or whether a strategy works.
  • Made-up: the tool wrote $0.50 a tick for the (really $1.25). 16-tick stop, $160 planned: code sizes 20 contracts; real risk 20 × $20 = $400. The right size was 8. Answer to the drill: $300. Guide: AI and machine learning in trading.

Worked example

Made-up numbers

One wrong number

Made-up numbers · Micro S&P 500 · tool said $0.50 a tick (real $1.25) · 16-tick stop · $160 planned

  1. Code: 16 × $0.50 = $8 a contract; $160 ÷ $8 = 20 contracts.
  2. Real: 16 × $1.25 = $20 a contract.
  3. 20 × $20 = $400 at risk.

$400 at risk instead of $160. One check of the contract specs would have caught it.

Your turn

Drill

Made-up numbers · Micro S&P 500 · real tick value $1.25 · code used $0.50 · stop 12 ticks · planned risk $120

Trading is risky. You can lose money, and automated trading can lose like any other trading. This lesson explains how things work. It isn’t advice.