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
- Ask a chat tool to explain one term from this course.
- 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.
Quick check
1. Why can an AI chat tool be confidently wrong?
2. Code from a chat tool runs with no errors. What does that tell you?
3. Where should a contract's tick value be checked?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
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 A program trained on huge amounts of text that writes answers by predicting likely words. It can sound sure and still be wrong.More in the glossary writes answers by predicting likely words. Good for: explaining terms, drafting code (TradingView’s own programming language, used to write the indicators and strategies that run on its charts.More in the glossary, A free programming language. Traders use it to write their own tests of trading rules on files of past prices.More in the glossary) 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 What one tick is worth in money for one futures contract. On the E-mini S&P 500 it’s $12.50.More in the glossary); code that runs but uses future prices (A backtest mistake: using a price the strategy couldn’t have known yet at the moment it made its decision.More in the glossary); 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 Short for application programming interface: a door into a system built for software. A bot uses a broker’s API to get prices and place orders.More in the glossary 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 A small futures contract on the S&P 500, traded at CME Group. Each point is worth $5, and its smallest step of 0.25 is worth $1.25.More in the glossary (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 numbersOne wrong number
Made-up numbers · Micro S&P 500 · tool said $0.50 a tick (real $1.25) · 16-tick stop · $160 planned
- Code: 16 × $0.50 = $8 a contract; $160 ÷ $8 = 20 contracts.
- Real: 16 × $1.25 = $20 a contract.
- 20 × $20 = $400 at risk.
$400 at risk instead of $160. One check of the contract specs would have caught it.
Your turn
DrillMade-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.