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
- Single-output indicators (RSI, ATR, VWAP…) add one column:
entry['rsi14']. - Multi-output indicators (Bollinger Bands, MACD, Stochastic…) add one column per output:
entry['bb_upperband'],entry['macd1_Signal'],entry['stoch_K'].
Naming rules
- Must start with a letter or underscore; may contain letters, digits,
_and-; must not end with-. - Names must be unique across the whole strategy (common + pre-entry + entry + exit sections share one namespace).
- Keep names short and meaningful — you will type them in conditions:
bb,ema20,rsi14.
Indicator catalog
Day
Outputs a number for calendar-based filters.
| Parameter | Options | Default |
|---|---|---|
| Day type | dayofweek (0=Mon … 6=Sun) / dayofmonth (1–31) | dayofweek |
Output: {name} — numeric.
# Only trade Monday to Wednesday
entry['d'] <= 2
Moving Average
| Parameter | Options | Default |
|---|---|---|
| Period | integer | 9 |
| Source | Open / High / Low / Close | Close |
| MA type | SMA / EMA / WMA | SMA |
| Timeframe | chart timeframes | 5Min |
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
| Parameter | Default |
|---|---|
| Period | 20 |
| 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
| Parameter | Options | Default |
|---|---|---|
| Source | hlc3 / other price sources | hlc3 |
| Anchor | Session / Weekly / Monthly | Session |
Output: {name} — volume-weighted average price, reset at the chosen anchor.
entry['Close'] > entry['vwap1']
RSI
| Parameter | Options | Default |
|---|---|---|
| Period | integer | 14 |
| Smoothing | SMA / EMA / WMA | SMA |
| Smoothing period | integer | 14 |
Outputs: {name} (raw RSI), {name}_Smoothed_RSI.
# RSI recovering from oversold
entry['rsi14'] > 30 && entry['rsi14'] < 60
MACD
| Parameter | Default |
|---|---|
| Fast period | 12 |
| Slow period | 26 |
| Signal period | 9 |
| Source | Close |
Outputs: {name} (MACD line), {name}_Signal, {name}_Histogram.
# MACD above signal line
entry['macd1'] > entry['macd1_Signal']
Stochastic
| Parameter | Default |
|---|---|
| %K period | 14 |
| %K smoothing | 1 |
| %D period | 3 |
| Source | Close |
Outputs: {name}_K, {name}_D.
entry['stoch_K'] > entry['stoch_D'] && entry['stoch_K'] < 80
ADX
| Parameter | Default |
|---|---|
| ADX smoothing | 14 |
| DI length | 14 |
Output: {name} — trend strength (above ~25 generally indicates a trending market).
# Only enter in trending conditions
entry['adx1'] > 25
ATR
| Parameter | Default |
|---|---|
| Period | 14 |
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
| Parameter | Default |
|---|---|
| Period | 20 |
| Smoothing line / period | 20 |
Output: {name} — smoothed Commodity Channel Index.
Parabolic SAR
| Parameter | Default |
|---|---|
| Start | 0.02 |
| Increment | 0.02 |
| Maximum | 0.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.
| Parameter | Options | Default |
|---|---|---|
| Timeframe | any chart timeframe higher than the strategy's | 5Min |
| Source | Open / High / Low / Close | Close |
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
| Parameter | Default |
|---|---|
| Lookback | 50 |
| Tolerance % | 1.0 |
| Min touches | 2 |
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.
| Parameter | Default | Meaning |
|---|---|---|
| Lookback | 2 | Candles on each side used to confirm a swing high |
| Min touches | 3 | Minimum swing highs the line must touch |
| Source high | High | Series used for swing detection |
| Source close | Close | Series 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
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.
| Parameter | Default |
|---|---|
| BB period | 20 |
| Multiplier | 2 |
| Source | Close |
| RSI period | 14 |
| Volume MA | 20 |
| Trend period | 20 |
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.
| Parameter | Default / Options |
|---|---|
| API key | Your own OpenAI API key (required) |
| Agent task | trend_analysis |
| Expected score range | optional |
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.
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.
| Indicator | Columns added (for name x) |
|---|---|
| Day | x |
| Moving Average | x |
| Bollinger Bands | x_upperband, x_middleband, x_lowerband |
| VWAP | x |
| RSI | x, x_Smoothed_RSI |
| MACD | x, x_Signal, x_Histogram |
| Stochastic | x_K, x_D |
| ADX | x |
| ATR | x |
| CCI | x |
| Parabolic SAR | x, x_AF, x_Trend |
| Fibonacci Retracement | x_0.0 … x_1.0 (7 levels) |
| MTCandle | x |
| Support Resistance | x_Resistance, x_Support |
| Trendline Breakout | x_Breakout, x_Trendline |
| AI BB | x_confidence_score |
| CS AI Assistance | (none — acts as automatic entry gate) |