Indicators reference
All indicators available to AI-generated strategies in the coinrule_x_indicators library.
The coinrule_x_indicators library provides 11 single-value and 3 multi-value indicators to every AI-generated strategy. The AI parser selects from these automatically based on your strategy description, and can also write custom indicator implementations inline.
Which single-value indicators are supported?
These return a single float value.
| Indicator | Parameters | Description |
|---|---|---|
SMA(period) | period: int | Simple Moving Average |
EMA(period) | period: int | Exponential Moving Average |
RSI(period) | period: int | Relative Strength Index (0–100) |
RSISMA(rsi_period, sma_period) | two periods | RSI smoothed with a SMA |
ATR(period) | period: int | Average True Range |
Price() | — | Current market price |
Candle(field) | field: open/high/low/close/volume | Single candle field |
VolumeSMA(period) | period: int | Volume Simple Moving Average |
LiquidationPrice() | — | Estimated liquidation price (perps) |
UnrealizedProfit() | — | Unrealized P&L of the open position |
WebhookSignal() | — | Last received TradingView webhook signal value |
Which multi-value indicators are supported?
These return a Dict[str, float] — access fields with dot-notation in strategy prose or by key in generated Python.
| Indicator | Keys | Description |
|---|---|---|
ADX(period) | adx, plus_di, minus_di | Average Directional Index + directional indicators |
BollingerBands(period, std_dev) | upper, middle, lower, percent_b, bandwidth | Bollinger Bands |
DonchianChannels(period) | upper, middle, lower | Donchian Channels |
Can you use custom indicators?
If you need an indicator that isn't in the list above, the AI can write a custom implementation inline by subclassing CandleIndicator and implementing calculate() and update(). Mention the indicator by name in your strategy description and the AI will attempt to implement it.
Indicators not in the library above (e.g. MACD, VWAP, Stochastic, Ichimoku) may still work if implemented inline, but there is no guarantee they will be generated correctly every time. Use the review screen to verify the generated code before launching.