strategy_macd
Analyze MACD convergence/divergence to produce buy, hold, or sell signals for any trading pair.
Instructions
MACD Strategy - trading signals based on moving average convergence/divergence. Returns: -1 (SELL), 0 (HOLD), 1 (BUY)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of OHLCV data points to fetch | |
| symbol | Yes | Trading pair, e.g., 'BTC/USDT' | |
| timeframe | No | Timeframe, e.g., '1m', '1h', '1d' | 1h |
| fastPeriod | No | Fast period | |
| slowPeriod | No | Slow period | |
| signalPeriod | No | Signal period |