Indicators

Indicators are the building blocks of a strategy. You attach them to the four indicator slots of the Strategy Editor: the Entry Point, the Entry Rules, the Exit Point, and the Exit Rules.

Every indicator has its own guide page. This index lists all of them with the slots they support, and documents the slot semantics, the logic-rule families, and the backtest behavior that all indicators share.

Quick reference

IndicatorEntry PointEntry RuleExit PointExit RulePurpose
Accelerator Oscillator—Yes—YesMeasures acceleration or deceleration of market momentum
Accumulation Distribution—Yes—YesCumulative flow of money into and out of an instrument
ADX—Yes—YesStrength of a trend regardless of its direction
Alligator—Yes—YesThree smoothed moving averages for trend direction
ATR Differential—Yes—YesDifference between a fast and a slow Average True Range
Average True Range—Yes—YesVolatility of an instrument
Awesome Oscillator—Yes—YesMomentum of recent price movement vs. broader history
Bar Close——Yes—Closes positions at the bar close price
Bar OpenYes—Yes—Opens or closes positions at the bar open price
Bears Power—Yes—YesStrength of sellers: lowest price vs. an EMA
Bollinger BandsYesYesYesYesMoving average with two volatility deviation bands
Bulls Bears Power—Yes—YesElder's Bulls Power plus Bears Power in one line
Bulls Bears Power Oscillator—Yes—YesDifference between two Bulls Bears Power lines
Bulls Power—Yes—YesStrength of buyers: highest price vs. an EMA
Candle Color—Yes—YesConsecutive bullish or bearish candles
CCI Differential—Yes—YesDifference between a fast and a slow CCI
Commodity Channel Index—Yes—YesPrice deviation from its statistical mean
DeMarker—Yes—YesDemand based on recent maximum and minimum prices
Directional Indicators—Yes—YesDI+ vs. DI- for trend direction
Donchian ChannelYesYesYesYesHighest high and lowest low over a period
EnvelopesYesYesYesYesTwo bands at a fixed percentage around a moving average
Fixed BandsYesYesYesYesMoving average with two bands a fixed distance away
Force Index—Yes—YesPrice movement and volume strength of buyers and sellers
FractalYesYesYes—Swing tops and bottoms; orders and entry filters at fractal levels
Inside Bar—Yes—YesA bar inside the range of the bar before it
Keltner ChannelYesYesYesYesMoving average with an Average True Range band
MACD—Yes—YesRelationship of two EMAs to identify trend changes
MACD Differential—Yes—YesDifference between two MACD lines
MACD Signal—Yes—YesMACD line vs. its signal line
Market Facilitation Index (BW MFI)—Yes—YesBar range per unit of volume (Bill Williams)
Momentum—Yes—YesRate of change of the price over a period
Momentum Differential—Yes—YesDifference between a fast and a slow Momentum
Money Flow Index—Yes—YesVolume-weighted RSI-style overbought and oversold levels
Moving AverageYesYesYesYesAverage price over a number of bars
Moving Average Difference—Yes—YesDifference between a fast and a slow moving average
Moving Average of Oscillator—Yes—YesDifference between an oscillator and its moving average
Moving Averages Crossover—Yes—YesFast MA vs. slow MA
Narrow Range—Yes—YesThe smallest range of the last four (NR4) or seven (NR7) bars
No Indicator Exit——Yes—Never closes by an indicator signal
On Balance Volume—Yes—YesCumulative volume flow
Pin Bar—Yes—YesCandle with a long wick and a small body
Previous CloseYesYesYesYesOrders and rules at the previous bar close
Previous High/LowYesYesYesYesTwo-level channel at the previous bar high and low
Previous OpenYesYesYesYesOrders and rules at the previous bar open
Price MoveYes—Yes—Orders a fixed distance above and below the previous price
Rate of Change—Yes—YesPercentage change of the price over a period
Round NumberYes—Yes—Orders at the nearest round price levels
RSI—Yes—YesSpeed and change of price movements
RSI Differential—Yes—YesDifference between a fast and a slow RSI
RVI—Yes—YesConviction of the recent price movement
RVI Signal—Yes—YesRVI line vs. its signal line
Standard Deviation—Yes—YesVolatility around a moving average
STARC BandsYesYesYesYesMoving average with a band from its own ATR
Stochastic—Yes—YesClose price within its range; overbought and oversold
Stochastic Signal—Yes—Yes%K line vs. its signal line
TRIX—Yes—YesPercentage change of a triple exponential moving average
TRIX Differential—Yes—YesDifference between two triple-smoothed percent changes
Volumes—Yes—YesNumber of units traded within each bar
Williams' Percent Range—Yes—YesClose price within its range; overbought and oversold

Strategy slots

An indicator behaves differently depending on the slot it is attached to. The four slots have their own guide pages: Entry Point, Entry Rules, Exit Point, and Exit Rules.

| Entry Point | 1 | Determines when and at which price the strategy opens a position. Mandatory; default Bar Open. | — | | Entry Rule | 0..n | Entry conditions, or filters, for opening a position. | AND | | Exit Point | 1 | Determines when and at which price the strategy closes a position. Mandatory; default Bar Close. | — | | Exit Rule | 0..n | Triggers for closing a position. | OR |

  • Entry point — an entry point indicator produces an order price for each direction (bar open price, a band level, a fractal level, a moving average value). When no entry rules are added, the strategy raises an entry signal each time the entry point is reached. See Entry Point.
  • Entry rules — each rule allows or denies a position opening. With multiple entry rules, the strategy opens a position only when all of them are satisfied (AND logic). See Entry Rules.
  • Exit point — an exit point indicator produces the closing price level. When no exit rules are added, the strategy exits each time the exit point is reached. See Exit Point.
  • Exit rules — each rule allows or denies a position exit. With multiple exit rules, the strategy closes a position when one of them is satisfied (OR logic). Exit rules exist only behind an exit point that allows them: the market exits Bar Open and Bar Close. A price-level exit point and No Indicator Exit allow none, which the Editor shows by disabling Add exit rule. See Exit Rules.
  • Ambiguous bars — when both a long and a short order are possible at the same price level, the bar is ambiguous: no order is placed and the bar is counted. See Ambiguous Bars.

Logic rules

Each indicator offers a fixed list of logic rules (the "Logic" selector in the indicator form). The rules fall into families with shared evaluation semantics. Every comparison uses a small dead zone (SIGMA = 0.000001): a value must differ by more than that epsilon to count.

Oscillator rules

Used by level oscillators and zero-centered indicators (RSI, Stochastic, MACD, AO, …). Two thresholds exist: a long threshold and a short threshold. The pairs are:

Indicator groupLong thresholdShort threshold
RSI, Stochastic, Money Flow IndexLevel100 − Level
DeMarkerLevel1 − Level
MomentumLevel200 − Level
Williams' Percent RangeLevel (≤ 0)−100 − Level
MACD, Moving Average of Oscillator, RVI, CCI, Awesome Oscillator, Accelerator Oscillator, Force Index, Accumulation Distribution, On Balance Volume, Bears Power, Bulls PowerLevel−Level
RuleLong signal (bar) is 1 whenShort signal (bar) is 1 when
risesvalue on the previous bar is above the value before itvalue on the previous bar is below the value before it
fallsvalue on the previous bar is below the value before itvalue on the previous bar is above the value before it
is higher than the Level lineprevious value is above the long thresholdprevious value is below the short threshold
is lower than the Level lineprevious value is below the long thresholdprevious value is above the short threshold
crosses the Level line upwardprevious value moved from below to above the long thresholdprevious value moved from above to below the short threshold
crosses the Level line downwardprevious value moved from above to below the long thresholdprevious value moved from below to above the short threshold
changes its direction upwardthe last two values form a valley (down then up)the last two values form a peak (up then down)
changes its direction downwardthe last two values form a peak (up then down)the last two values form a valley (down then up)

Band rules

Used by Bollinger Bands, Donchian Channel, and Envelopes. The bar open price is compared with the upper and lower band:

RuleLong signal (bar) is 1 whenShort signal (bar) is 1 when
The bar opens above Upper Bandbar open is above the previous bar's upper bandbar open is below the previous bar's lower band
The bar opens below Lower Bandbar open is below the previous bar's lower bandbar open is above the previous bar's upper band
The bar opens below Upper Band after opening above itbar open fell back below the upper band after opening above itbar open rose back above the lower band after opening below it
The bar opens above Upper Band after opening below itbar open rose above the upper band after opening below itbar open fell below the lower band after opening above it
The bar opens below Lower Band after opening above itbar open fell below the lower band after opening above itbar open rose above the upper band after opening below it
The bar opens above Lower Band after opening below itbar open rose above the lower band after opening below itbar open fell below the upper band after opening above it

Price vs. line rules

Moving Average's existing bar-open rules compare the bar open with the line, with the two "after opening" return variants (above after opening below, below after opening above). Its entry-only position-price rules compare the Entry Point's proposed order price with the MA.

Entry-price relation rules

The position-opens-above/below rules are available only in the Entry Rule slot for Moving Average, Bollinger Bands, Donchian Channel, Envelopes, Alligator, Moving Averages Crossover, and Fractal. The rule text describes the long comparison; short entries reverse the inequality. Band and Fractal rules use the opposite line for short entries, while Alligator and MA Crossover keep the named line. The proposed order price (including its Entry Point gap adjustment) is compared with the raw line using a strict half-instrument-point dead zone. These rules are state filters, not bar-open tests or conditions on the eventual fill.

Two-line rules

Used by MACD Signal, RVI Signal, Stochastic Signal, Moving Averages Crossover, Directional Indicators (DI+ vs. DI-), and the Alligator (Lips/Teeth/Jaws):

RuleLong signal is 1 whenShort signal is 1 when
line crosses the Signal line upwardfirst line crossed above the second linefirst line crossed below the second line
line crosses the Signal line downwardfirst line crossed below the second linefirst line crossed above the second line
line is higher than the Signal linefirst line is above the second linefirst line is below the second line
line is lower than the Signal linefirst line is below the second linefirst line is above the second line

Single-line rules

Used by Moving Average (rises, falls, changes its direction upward/downward) and the Alligator lines: as in the oscillator table, without a level.

No-direction rules

Used by Volumes, ADX, Average True Range, and Standard Deviation: the rule output is written to the long signal and copied to the short signal, so the rule fires for both directions.

Pattern rules

  • Candle Color — "Bullish Candle formed" / "Bearish Candle formed": consecutive candles whose body is at least the minimum body height.
  • Pin Bar — "Bullish Pin Bar formed" / "Bearish Pin Bar formed": a candle with a small body and one long wick.

Signal timing

  • Indicators are evaluated on the previous (closed) bar: prev = 1 in the engine, except when the price source is Bar Open, which uses the current bar.
  • Signals are only valid from the indicator's firstBar — the bars needed to compute the first value plus two warm-up bars.
  • Entry rules are ANDed with the entry point's direction signal; exit rules are ORed across the open position's direction.

Backtesting

The backtester pairs the entry point with the exit point and dispatches one of six per-bar simulators (see engine/backtester/backtester-core.ts):

Entry pointExit pointScenario
Bar OpenBar OpenOpenOpen
Bar OpenBar CloseOpenClose
Bar Openother indicatorOpenIndicator
other indicatorBar OpenIndicatorOpen
other indicatorBar CloseIndicatorClose
other indicatorother indicatorIndicatorIndicator
anyNo Indicator Exitas above, without the indicator exit
  • Bar Open entry — orders are placed at the bar open price.
  • Bar Close exit — positions are closed at the bar close price.
  • Indicator entry/exit — orders sit at the indicator's price level (e.g. band, fractal, moving average) and are filled when the bar reaches the level; the intrabar interpolation method (Pessimistic, Shortest, Nearest, Optimistic, Random) resolves the fill when both directions could fill inside the same bar.
  • Strategy features (Stop Loss, Take Profit, Break-even, session/friday close, duration, opposite-signal actions, Grid, Martingale) can close positions independently of the indicator logic. See the Strategy Features index.