Draw marks on a chart
draw_chartRenders technical-analysis marks on a TraderWAI candlestick chart and returns the image. Marks: horizontal levels, zones (supply/demand, ranges, gaps), trendlines and channels, candle markers, text labels (HH, HL, BOS, CHoCH…), Fibonacci retracements, measurements, an expected path and a trade plan (entry, stop loss and targets with R). Candles are identified by their open time in UTC (ISO 8601); a price can be a number or the high/low of a candle. Up to 30 marks per chart; marks that are not valid are skipped and listed in the result. "until" freezes the chart at a given candle. Example: {"symbol":"XAU_USD","timeframe":"H1","marks":[{"type":"zone","high":4160,"low":4152,"from":"2026-10-15T09:00:00Z","extend":true,"label":"Supply","tone":"bearish"},{"type":"hline","price":"low","from":"2026-10-15T05:00:00Z","label":"Support","tone":"bullish"},{"type":"position","side":"short","entry":4148,"stop_loss":4162,"take_profit":[4130,4110]}]}. The number of marked charts per day depends on the TraderWAI account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"timeframe": "<timeframe>",
"marks": "<marks>"
},
"name": "draw_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| marks | Yes | What to draw | |
| until | No | Optional: draw the chart only up to this candle time (UTC ISO), e.g. the last candle you analysed | |
| symbol | Yes | Symbol (e.g. XAU_USD, NAS100_USD, EUR_USD). | |
| timeframe | Yes | Chart timeframe |