generate_pinescript
Generates TradingView Pine Script v6 from a strategy ID. Returns the script and identifier for backtesting and deployment.
Instructions
Generate TradingView Pine Script v6 for a strategy. Returns {strategy_id, pinescript}.
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": {
"strategy_id": "<strategy_id>"
},
"name": "generate_pinescript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy_id | Yes | ||
| with_webhook | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| error | Yes |