Guides · Updated · 6 min read

How to get AI to draw support, resistance and trend lines on a chart

The short answer

Don’t ask a chatbot to read levels off a screenshot: it estimates prices by eye and is often wrong. Give it the price data and a tool that finds swing highs and lows instead. It can then see where price turned several times, draw those levels and trend lines on a chart you’re looking at, and look at the chart to check its own work. With an MCP server such as TradePuffin, Claude, ChatGPT or Gemini does this from one plain-language request.

Why screenshots give you wrong levels

A chart image has no numbers in it, only pixels. A model looking at one has to guess where a candle’s low sits on the price axis, and small errors become levels that are a few percent off — the difference between “held” and “broke”. It also can’t see more history than the screenshot shows, or count how often a level was touched.

With the bars themselves, the agent works from exact prices: the low on May 27 was 208.78, not “around 210”.

What the agent is looking for

A worked example: NVDA, May to November 2026

We asked: “Look at NVDA’s daily chart. Where’s support, and is the uptrend still intact?” The agent fetched 130 daily bars, found 12 swing points, and drew what it found:

NVDA daily chart with support, trend line and an alert drawn by an AI agent160180200220240JunJulAugSepOctNovNVDANVIDIA Corp · 1D162.85-2.01%RSI 14 · 24.9Support 208.32 · 3 touches · brokenUptrend line189.91Alert

Its answer to “is the uptrend intact?” was a plain no, with the dates — and every claim is on the chart where you can check it.

How to do it

  1. Connect TradePuffin to your AI app (Claude, ChatGPT, others) and open the chart in your browser.
  2. Ask for the symbol, the timeframe and what you want drawn. Say “daily” or “weekly”; levels differ by timeframe.
  3. The agent calls get_bars, then find_swings for the turning points and levels, then add_drawings. Each line appears on your chart as it’s drawn.
  4. Ask it to show you the chart: it calls view_chart, sees what you see, and can fix a line that’s off.
  5. Optionally, ask for alerts on the levels or lines it drew.

Prompts to copy

Tips

Try it with your own agent.7-day free trial. Connect Claude, ChatGPT, Gemini or Cursor in minutes.
Start free trial

More guides

For information and education only; not investment advice. See the Disclaimer.