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
| Indicator | Entry Point | Entry Rule | Exit Point | Exit Rule | Purpose |
|---|---|---|---|---|---|
| Accelerator Oscillator | — | Yes | — | Yes | Measures acceleration or deceleration of market momentum |
| Accumulation Distribution | — | Yes | — | Yes | Cumulative flow of money into and out of an instrument |
| ADX | — | Yes | — | Yes | Strength of a trend regardless of its direction |
| Alligator | — | Yes | — | Yes | Three smoothed moving averages for trend direction |
| ATR Differential | — | Yes | — | Yes | Difference between a fast and a slow Average True Range |
| Average True Range | — | Yes | — | Yes | Volatility of an instrument |
| Awesome Oscillator | — | Yes | — | Yes | Momentum of recent price movement vs. broader history |
| Bar Close | — | — | Yes | — | Closes positions at the bar close price |
| Bar Open | Yes | — | Yes | — | Opens or closes positions at the bar open price |
| Bears Power | — | Yes | — | Yes | Strength of sellers: lowest price vs. an EMA |
| Bollinger Bands | Yes | Yes | Yes | Yes | Moving average with two volatility deviation bands |
| Bulls Bears Power | — | Yes | — | Yes | Elder's Bulls Power plus Bears Power in one line |
| Bulls Bears Power Oscillator | — | Yes | — | Yes | Difference between two Bulls Bears Power lines |
| Bulls Power | — | Yes | — | Yes | Strength of buyers: highest price vs. an EMA |
| Candle Color | — | Yes | — | Yes | Consecutive bullish or bearish candles |
| CCI Differential | — | Yes | — | Yes | Difference between a fast and a slow CCI |
| Commodity Channel Index | — | Yes | — | Yes | Price deviation from its statistical mean |
| DeMarker | — | Yes | — | Yes | Demand based on recent maximum and minimum prices |
| Directional Indicators | — | Yes | — | Yes | DI+ vs. DI- for trend direction |
| Donchian Channel | Yes | Yes | Yes | Yes | Highest high and lowest low over a period |
| Envelopes | Yes | Yes | Yes | Yes | Two bands at a fixed percentage around a moving average |
| Fixed Bands | Yes | Yes | Yes | Yes | Moving average with two bands a fixed distance away |
| Force Index | — | Yes | — | Yes | Price movement and volume strength of buyers and sellers |
| Fractal | Yes | Yes | Yes | — | Swing tops and bottoms; orders and entry filters at fractal levels |
| Inside Bar | — | Yes | — | Yes | A bar inside the range of the bar before it |
| Keltner Channel | Yes | Yes | Yes | Yes | Moving average with an Average True Range band |
| MACD | — | Yes | — | Yes | Relationship of two EMAs to identify trend changes |
| MACD Differential | — | Yes | — | Yes | Difference between two MACD lines |
| MACD Signal | — | Yes | — | Yes | MACD line vs. its signal line |
| Market Facilitation Index (BW MFI) | — | Yes | — | Yes | Bar range per unit of volume (Bill Williams) |
| Momentum | — | Yes | — | Yes | Rate of change of the price over a period |
| Momentum Differential | — | Yes | — | Yes | Difference between a fast and a slow Momentum |
| Money Flow Index | — | Yes | — | Yes | Volume-weighted RSI-style overbought and oversold levels |
| Moving Average | Yes | Yes | Yes | Yes | Average price over a number of bars |
| Moving Average Difference | — | Yes | — | Yes | Difference between a fast and a slow moving average |
| Moving Average of Oscillator | — | Yes | — | Yes | Difference between an oscillator and its moving average |
| Moving Averages Crossover | — | Yes | — | Yes | Fast MA vs. slow MA |
| Narrow Range | — | Yes | — | Yes | The 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 | — | Yes | Cumulative volume flow |
| Pin Bar | — | Yes | — | Yes | Candle with a long wick and a small body |
| Previous Close | Yes | Yes | Yes | Yes | Orders and rules at the previous bar close |
| Previous High/Low | Yes | Yes | Yes | Yes | Two-level channel at the previous bar high and low |
| Previous Open | Yes | Yes | Yes | Yes | Orders and rules at the previous bar open |
| Price Move | Yes | — | Yes | — | Orders a fixed distance above and below the previous price |
| Rate of Change | — | Yes | — | Yes | Percentage change of the price over a period |
| Round Number | Yes | — | Yes | — | Orders at the nearest round price levels |
| RSI | — | Yes | — | Yes | Speed and change of price movements |
| RSI Differential | — | Yes | — | Yes | Difference between a fast and a slow RSI |
| RVI | — | Yes | — | Yes | Conviction of the recent price movement |
| RVI Signal | — | Yes | — | Yes | RVI line vs. its signal line |
| Standard Deviation | — | Yes | — | Yes | Volatility around a moving average |
| STARC Bands | Yes | Yes | Yes | Yes | Moving average with a band from its own ATR |
| Stochastic | — | Yes | — | Yes | Close price within its range; overbought and oversold |
| Stochastic Signal | — | Yes | — | Yes | %K line vs. its signal line |
| TRIX | — | Yes | — | Yes | Percentage change of a triple exponential moving average |
| TRIX Differential | — | Yes | — | Yes | Difference between two triple-smoothed percent changes |
| Volumes | — | Yes | — | Yes | Number of units traded within each bar |
| Williams' Percent Range | — | Yes | — | Yes | Close 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 group | Long threshold | Short threshold |
|---|---|---|
| RSI, Stochastic, Money Flow Index | Level | 100 − Level |
| DeMarker | Level | 1 − Level |
| Momentum | Level | 200 − Level |
| Williams' Percent Range | Level (≤ 0) | −100 − Level |
| MACD, Moving Average of Oscillator, RVI, CCI, Awesome Oscillator, Accelerator Oscillator, Force Index, Accumulation Distribution, On Balance Volume, Bears Power, Bulls Power | Level | −Level |
| Rule | Long signal (bar) is 1 when | Short signal (bar) is 1 when |
|---|---|---|
| rises | value on the previous bar is above the value before it | value on the previous bar is below the value before it |
| falls | value on the previous bar is below the value before it | value on the previous bar is above the value before it |
| is higher than the Level line | previous value is above the long threshold | previous value is below the short threshold |
| is lower than the Level line | previous value is below the long threshold | previous value is above the short threshold |
| crosses the Level line upward | previous value moved from below to above the long threshold | previous value moved from above to below the short threshold |
| crosses the Level line downward | previous value moved from above to below the long threshold | previous value moved from below to above the short threshold |
| changes its direction upward | the last two values form a valley (down then up) | the last two values form a peak (up then down) |
| changes its direction downward | the 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:
| Rule | Long signal (bar) is 1 when | Short signal (bar) is 1 when |
|---|---|---|
| The bar opens above Upper Band | bar open is above the previous bar's upper band | bar open is below the previous bar's lower band |
| The bar opens below Lower Band | bar open is below the previous bar's lower band | bar open is above the previous bar's upper band |
| The bar opens below Upper Band after opening above it | bar open fell back below the upper band after opening above it | bar open rose back above the lower band after opening below it |
| The bar opens above Upper Band after opening below it | bar open rose above the upper band after opening below it | bar open fell below the lower band after opening above it |
| The bar opens below Lower Band after opening above it | bar open fell below the lower band after opening above it | bar open rose above the upper band after opening below it |
| The bar opens above Lower Band after opening below it | bar open rose above the lower band after opening below it | bar 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):
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| line crosses the Signal line upward | first line crossed above the second line | first line crossed below the second line |
| line crosses the Signal line downward | first line crossed below the second line | first line crossed above the second line |
| line is higher than the Signal line | first line is above the second line | first line is below the second line |
| line is lower than the Signal line | first line is below the second line | first 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 = 1in 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 point | Exit point | Scenario |
|---|---|---|
| Bar Open | Bar Open | OpenOpen |
| Bar Open | Bar Close | OpenClose |
| Bar Open | other indicator | OpenIndicator |
| other indicator | Bar Open | IndicatorOpen |
| other indicator | Bar Close | IndicatorClose |
| other indicator | other indicator | IndicatorIndicator |
| any | No Indicator Exit | as 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.