Fibonacci Levels
workflow.run_fibonacci_levelsFibonacci retracement and extension price levels from a swing high and low, for any asset (forex, stocks, crypto): retracement 0, 23.6, 38.2, 50, 61.8, 78.6 and 100 percent and extension 127.2, 161.8, 200 and 261.8 percent, as prices. direction "up" measures a rise from the low to the high, "down" a fall from the high to the low; 0 percent is the end of the swing and 100 percent its start. A level at or below zero (an extension of a steep fall) comes back as price null. The ratios are a charting convention, not a forecast. Pure price arithmetic, no pair or market data. Edge cases: high and low above zero and finite, high above low (equal or reversed is an error); direction is up or down. Not covered: choosing the swing points, confluence with other levels, and any statement about where price will turn; the levels are arithmetic.
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": {
"high": "<high>",
"low": "<low>",
"direction": "<direction>"
},
"name": "workflow.run_fibonacci_levels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | Yes | Swing low price (positive, below the high) | |
| high | Yes | Swing high price (positive, above the low, at most 1e300) | |
| direction | Yes | "up": the swing rose from the low to the high; "down": it fell from the high to the low |