Skip to content

Indicators reference

All indicators available to AI-generated strategies in the coinrule_x_indicators library.

Updated 2026-05-29·2 min read

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.

IndicatorParametersDescription
SMA(period)period: intSimple Moving Average
EMA(period)period: intExponential Moving Average
RSI(period)period: intRelative Strength Index (0–100)
RSISMA(rsi_period, sma_period)two periodsRSI smoothed with a SMA
ATR(period)period: intAverage True Range
Price()Current market price
Candle(field)field: open/high/low/close/volumeSingle candle field
VolumeSMA(period)period: intVolume 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.

IndicatorKeysDescription
ADX(period)adx, plus_di, minus_diAverage Directional Index + directional indicators
BollingerBands(period, std_dev)upper, middle, lower, percent_b, bandwidthBollinger Bands
DonchianChannels(period)upper, middle, lowerDonchian 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.

Was this article helpful?

Coinrule

AI-powered trading automation. Your keys, your coins.
Backed by Y Combinator.

© 2026 Coinrule. All rights reserved.

No information here constitutes investment advice. Coinrule does not take any liability for rule performance. Trade at your own risk. Terms · Privacy

The services, products, and content available on coinrule.com are not intended for, directed at, or marketed to residents of the European Union (EU) or the European Economic Area (EEA). Coinrule does not hold a Crypto-Asset Service Provider (CASP) license under the EU Markets in Crypto-Assets (MiCA) regulation. Any access to our services by users residing within the EU/EEA is done solely at the user's own exclusive initiative and request (passive provision of services/reverse solicitation).