Indicators Reference

Every common indicator: parameters, defaults, and the variables it adds for use in your conditions.

How indicators work

Indicators added in the Indicators section are computed across the full chart history and stored as extra columns on every candle — right next to Open, High, Low, Close. You choose the column name when you create the indicator.

Because of that, you read an indicator value through a candle, exactly the way you read price: candle['column']. There is no bare global variable — the value only exists attached to a candle (the entry candle, a matched pre-entry candle, etc.).

# ✅ Correct — read the indicator column off a matched candle
entry['Close'] > entry['ema20']

# ❌ Wrong — a bare indicator name is undefined; the condition fails
entry['Close'] > ema20

Naming rules

Indicator catalog

Day

Outputs a number for calendar-based filters.

ParameterOptionsDefault
Day typedayofweek (0=Mon … 6=Sun) / dayofmonth (1–31)dayofweek

Output: {name} — numeric.

# Only trade Monday to Wednesday
entry['d'] <= 2

Moving Average

ParameterOptionsDefault
Periodinteger9
SourceOpen / High / Low / CloseClose
MA typeSMA / EMA / WMASMA
Timeframechart timeframes5Min

Output: {name}. The timeframe parameter lets the MA be computed on a higher timeframe than the chart.

# Price above the 20 EMA
entry['Close'] > entry['ema20']

Bollinger Bands

ParameterDefault
Period20
Multiplier (std-dev)2

Outputs: {name}_upperband, {name}_middleband, {name}_lowerband.

# Close crosses back above the middle band
entry['Low'] < entry['bb_middleband'] && entry['Close'] > entry['bb_middleband']

VWAP

ParameterOptionsDefault
Sourcehlc3 / other price sourceshlc3
AnchorSession / Weekly / MonthlySession

Output: {name} — volume-weighted average price, reset at the chosen anchor.

entry['Close'] > entry['vwap1']

RSI

ParameterOptionsDefault
Periodinteger14
SmoothingSMA / EMA / WMASMA
Smoothing periodinteger14

Outputs: {name} (raw RSI), {name}_Smoothed_RSI.

# RSI recovering from oversold
entry['rsi14'] > 30 && entry['rsi14'] < 60

MACD

ParameterDefault
Fast period12
Slow period26
Signal period9
SourceClose

Outputs: {name} (MACD line), {name}_Signal, {name}_Histogram.

# MACD above signal line
entry['macd1'] > entry['macd1_Signal']

Stochastic

ParameterDefault
%K period14
%K smoothing1
%D period3
SourceClose

Outputs: {name}_K, {name}_D.

entry['stoch_K'] > entry['stoch_D'] && entry['stoch_K'] < 80

ADX

ParameterDefault
ADX smoothing14
DI length14

Output: {name} — trend strength (above ~25 generally indicates a trending market).

# Only enter in trending conditions
entry['adx1'] > 25

ATR

ParameterDefault
Period14

Output: {name} — average true range (volatility in price units). Useful for volatility filters.

# Skip dead markets: range must exceed half the ATR
(entry['High'] - entry['Low']) > (entry['atr14'] * 0.5)

CCI

ParameterDefault
Period20
Smoothing line / period20

Output: {name} — smoothed Commodity Channel Index.

Parabolic SAR

ParameterDefault
Start0.02
Increment0.02
Maximum0.2

Outputs: {name} (SAR value), {name}_AF (acceleration factor), {name}_Trend (current trend direction).

# Price above SAR = uptrend
entry['Close'] > entry['psar']

Fibonacci Retracement

No parameters. Levels are computed automatically from the detected swing high/low.

Outputs: {name}_0.0, {name}_0.236, {name}_0.382, {name}_0.5, {name}_0.618, {name}_0.786, {name}_1.0.

# Price holding above the 61.8% level
entry['Close'] > entry['fib_0.618']

MTCandle (multi-timeframe)

Brings a value from a higher timeframe onto your chart timeframe, so conditions can mix timeframes.

ParameterOptionsDefault
Timeframeany chart timeframe higher than the strategy's5Min
SourceOpen / High / Low / CloseClose

Output: {name} — the chosen source from the higher timeframe, aligned to every base candle.

# 1-min entries only while 15-min close is above the EMA
entry['mt15'] > entry['ema20']

Support Resistance

ParameterDefault
Lookback50
Tolerance %1.0
Min touches2

Outputs: {name}_Resistance, {name}_Support — nearest detected levels.

# Breakout above resistance
entry['Close'] > entry['sr_Resistance']

Trendline Breakout

Fits a descending resistance trendline through recent swing highs (lower highs) and flags when price closes above it.

ParameterDefaultMeaning
Lookback2Candles on each side used to confirm a swing high
Min touches3Minimum swing highs the line must touch
Source highHighSeries used for swing detection
Source closeCloseSeries compared against the line for breakout

Outputs: {name}_Breakout (1 when close breaks above the line, else 0), {name}_Trendline (the line's value).

entry['tl_Breakout'] == 1
Tuning tip Higher lookback (3–4) and min touches (4+) produce cleaner, chart-like trendlines with fewer false breakouts; the defaults are more sensitive.

AI BB

An AI-assisted Bollinger Band signal that distills the current market picture into a single confidence score — higher means conditions look more favorable.

ParameterDefault
BB period20
Multiplier2
SourceClose
RSI period14
Volume MA20
Trend period20

Output: {name}_confidence_score — read it off a candle and compare to a threshold, e.g. entry['aibb_confidence_score'] > 70.

CS AI Assistance

Sends market context to an AI model as a final gate after your entry conditions pass. The trade is taken only if the AI score also agrees.

ParameterDefault / Options
API keyYour own OpenAI API key (required)
Agent tasktrend_analysis
Expected score rangeoptional

Behavior: unlike other indicators, you do not reference it in a condition string. It runs automatically after the entry condition is true and can veto the entry.

Costs and latency Each evaluation makes an AI call billed to your API key — this adds per-signal cost and latency. Use it on slower timeframes.

Quick reference: outputs cheat-sheet

Each indicator adds the columns below. Always read them off a candle with candle['column'] — e.g. entry['x_upperband'], never a bare x_upperband.

IndicatorColumns added (for name x)
Dayx
Moving Averagex
Bollinger Bandsx_upperband, x_middleband, x_lowerband
VWAPx
RSIx, x_Smoothed_RSI
MACDx, x_Signal, x_Histogram
Stochasticx_K, x_D
ADXx
ATRx
CCIx
Parabolic SARx, x_AF, x_Trend
Fibonacci Retracementx_0.0 … x_1.0 (7 levels)
MTCandlex
Support Resistancex_Resistance, x_Support
Trendline Breakoutx_Breakout, x_Trendline
AI BBx_confidence_score
CS AI Assistance(none — acts as automatic entry gate)