get_macd
Calculate MACD for a trading symbol using optional broker, date range, interval, and custom EMA periods to analyze momentum and identify trend reversals.
Instructions
Get MACD (Moving Average Convergence Divergence) for a symbol from active or specific broker in your session
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>"
},
"name": "get_macd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| broker | No | Specific broker (optional) | |
| symbol | Yes | Trading symbol | |
| to_date | No | End date (YYYY-MM-DD) | |
| interval | No | Time interval (1m, 5m, 15m, 1h, 1d) | |
| from_date | No | Start date (YYYY-MM-DD) | |
| fast_period | No | Fast EMA period (default: 12) | |
| slow_period | No | Slow EMA period (default: 26) | |
| signal_period | No | Signal line period (default: 9) |