Indicators

Augy includes 21 built-in technical indicators and supports custom indicator functions.

Using indicators in agents

Import indicators at the top of your agent code:

from augy_indicators import sma, ema, rsi, macd

All functions take a list of price values and return the current indicator value. Append prices on each bar, then call the indicator function with your price history.

Trend indicators

SMA -- Simple Moving Average

sma(prices, period=20)

Average of the last N closing prices.

EMA -- Exponential Moving Average

ema(prices, period=20)

Weighted average giving more importance to recent prices.

WMA -- Weighted Moving Average

wma(prices, period=20)

Linearly weighted average. More recent prices have higher weight.

DEMA -- Double Exponential Moving Average

dema(prices, period=20)

Faster reaction than EMA by reducing lag.

TEMA -- Triple Exponential Moving Average

tema(prices, period=20)

Fastest reaction of the EMA family. Minimal lag.

Momentum indicators

RSI -- Relative Strength Index

rsi(prices, period=14)

Oscillator from 0-100. Above 70 = overbought, below 30 = oversold.

Stochastic Oscillator

stochastic(highs, lows, closes, k_period=14, d_period=3)

Returns (%K, %D). Compares closing price to the high-low range.

Williams %R

williams_r(highs, lows, closes, period=14)

Range -100 to 0. Similar to Stochastic, inverted scale.

ROC -- Rate of Change

roc(prices, period=12)

Percentage change over N periods.

CCI -- Commodity Channel Index

cci(highs, lows, closes, period=20)

Measures deviation from the statistical mean. Values above +100 or below -100 indicate extreme conditions.

MFI -- Money Flow Index

mfi(highs, lows, closes, volumes, period=14)

Volume-weighted RSI. Range 0-100.

Volatility indicators

Bollinger Bands

bollinger_bands(prices, period=20, std_dev=2.0)

Returns (upper, middle, lower). Bands expand/contract with volatility.

ATR -- Average True Range

atr(highs, lows, closes, period=14)

Measures market volatility. Useful for setting stop losses.

Keltner Channel

keltner_channel(highs, lows, closes, ema_period=20, atr_period=10, multiplier=1.5)

Returns (upper, middle, lower). EMA-based channel using ATR for bandwidth.

Volume indicators

OBV -- On-Balance Volume

obv(closes, volumes)

Cumulative volume indicator. Rising OBV suggests buying pressure.

VWAP -- Volume-Weighted Average Price

vwap(highs, lows, closes, volumes)

Average price weighted by volume. Common intraday benchmark.

Overlap indicators

MACD -- Moving Average Convergence Divergence

macd(prices, fast=12, slow=26, signal=9)

Returns (macd_line, signal_line, histogram). Classic trend-following momentum indicator.

ADX -- Average Directional Index

adx(highs, lows, closes, period=14)

Measures trend strength from 0-100. Above 25 indicates a strong trend.

Ichimoku Cloud

ichimoku(highs, lows, tenkan=9, kijun=26, senkou_b=52)

Returns dict with tenkan_sen, kijun_sen, senkou_a, senkou_b. Comprehensive trend system.

Custom indicators

Create your own indicator functions from the Indicators page in the app. Write a Python function, give it a name and description, and it becomes available to all your agents.

Importing custom indicators

from custom_indicators.my_indicator import *

Replace my_indicator with the name you gave your custom indicator.

Chart overlay

You can overlay up to 5 indicators on the candlestick chart in both the agent editor preview and backtest results. Select indicators from the dropdown above the chart to visualize how they relate to price action.