detect_patterns
Identify candlestick patterns on recent bars, including doji, engulfing, harami, stars, and more. Returns each pattern's bias (bullish/bearish/neutral) and bars_ago for trade signals.
Instructions
Detect candlestick patterns on the most recent lookback candles.
Recognizes doji (incl. dragonfly/gravestone), hammer/hanging man,
inverted hammer/shooting star, marubozu, spinning top, bullish/bearish
engulfing & harami, piercing line, dark cloud cover, tweezers, morning/
evening star, and three white soldiers/black crows. Each result carries
its conventional bias (bullish/bearish/neutral) and bars_ago.
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": "detect_patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol | Yes | ||
| exchange | No | ||
| lookback | No | ||
| timeframe | No | 1h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||