generate_chart
Create TradingView charts with customized symbols, intervals, types, and technical indicators. Use real-time progress updates to visualize financial data efficiently.
Instructions
Generate TradingView charts using Chart-IMG API with real-time progress updates
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chartType | Yes | Type of chart to generate | |
drawings | No | Chart drawings and annotations | |
height | No | Chart height in pixels | |
indicators | No | Technical indicators to add to the chart | |
interval | Yes | Chart time interval | |
showGrid | No | Show chart grid | |
showVolume | No | Show volume indicator | |
symbol | Yes | Trading symbol in format EXCHANGE:SYMBOL (e.g., NASDAQ:AAPL) | |
theme | No | Chart theme | light |
timezone | No | Chart timezone | America/New_York |
width | No | Chart width in pixels |
Input Schema (JSON Schema)
{
"properties": {
"chartType": {
"description": "Type of chart to generate",
"enum": [
"candlestick",
"line",
"area",
"bar",
"heikin_ashi",
"hollow_candle",
"baseline",
"hi_lo",
"column"
],
"type": "string"
},
"drawings": {
"description": "Chart drawings and annotations",
"items": {
"properties": {
"color": {
"description": "Drawing color",
"type": "string"
},
"points": {
"items": {
"properties": {
"x": {
"description": "Date in YYYY-MM-DD format",
"type": "string"
},
"y": {
"description": "Price level",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"type": {
"description": "Drawing type (e.g., trendline, rectangle)",
"type": "string"
},
"width": {
"description": "Line width",
"type": "number"
}
},
"required": [
"type",
"points"
],
"type": "object"
},
"type": "array"
},
"height": {
"default": 600,
"description": "Chart height in pixels",
"maximum": 1500,
"minimum": 300,
"type": "number"
},
"indicators": {
"description": "Technical indicators to add to the chart",
"items": {
"properties": {
"color": {
"description": "Color for the indicator",
"type": "string"
},
"overbought": {
"description": "Overbought level for oscillators",
"type": "number"
},
"oversold": {
"description": "Oversold level for oscillators",
"type": "number"
},
"period": {
"description": "Period for the indicator",
"type": "number"
},
"type": {
"description": "Indicator type (e.g., sma, rsi, macd)",
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"type": "array"
},
"interval": {
"description": "Chart time interval",
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h",
"6h",
"12h",
"1D",
"1W",
"1M"
],
"type": "string"
},
"showGrid": {
"default": true,
"description": "Show chart grid",
"type": "boolean"
},
"showVolume": {
"default": true,
"description": "Show volume indicator",
"type": "boolean"
},
"symbol": {
"description": "Trading symbol in format EXCHANGE:SYMBOL (e.g., NASDAQ:AAPL)",
"type": "string"
},
"theme": {
"default": "light",
"description": "Chart theme",
"enum": [
"light",
"dark"
],
"type": "string"
},
"timezone": {
"default": "America/New_York",
"description": "Chart timezone",
"type": "string"
},
"width": {
"default": 800,
"description": "Chart width in pixels",
"maximum": 2000,
"minimum": 400,
"type": "number"
}
},
"required": [
"symbol",
"interval",
"chartType"
],
"type": "object"
}