Skip to content

Candle

Candle is an indicator that provides access to individual candlestick data: open price, close price, high, low, and trading volume. It is used in flexible strategy conditions to compare price parameters against other indicators.

  1. The bot retrieves the candlestick history for the selected trading pair.
  2. Based on the Shift setting, it selects the target candle (0 = current, 1 = previous, etc.).
  3. The value of the specified data source (Open, Close, High, Low, or Volume) is extracted from that candle.
  4. The extracted value is used in the condition logic — compared against another indicator or a constant.
  5. Calculation is performed according to the selected method: on candle close or every minute.
SourceDescription
OpenCandle opening price
CloseCandle closing price
HighHighest price within the candle period
LowLowest price within the candle period
VolumeTrading volume within the candle period
  • Interval — the candle timeframe (e.g., 1m, 5m, 1h, 1d). Determines which period’s data is used.
  • Shift — offset relative to the current candle. 0 = current candle, 1 = previous closed candle, 2 = the one before that, etc.
  • Calculation Method:
    • On candle close — the value updates only after each candle closes.
    • Every minute — the value recalculates every minute using live data from the current open candle.

Comparison operators: “greater/less than” vs “crosses up/down”

Section titled “Comparison operators: “greater/less than” vs “crosses up/down””

Before diving into examples, it is important to understand the difference between operators — this directly affects how the strategy behaves.

OperatorBehaviorWhen to use
> (greater than)Signal fires on every candle while Candle Close stays above SMAHolding a position, trend filters
< (less than)Signal fires on every candle while Candle Close stays below SMAHolding a position, trend filters
↑ Crosses upSignal fires once — at the moment Candle Close crosses SMA from belowEntering a position on breakout
↓ Crosses downSignal fires once — at the moment Candle Close crosses SMA from aboveExiting a position on breakout

Operator selection in the condition editor

All four options are configured in the condition editor when selecting the operator between two indicators.


Candle Close and SMA — price crossing a moving average

Section titled “Candle Close and SMA — price crossing a moving average”

A classic signal: enter a long position at the moment the closing price crosses the moving average from below. In the editor it looks like this:

Candle Close crosses SMA upward

If you need to keep the condition active the entire time price is above SMA (for example, as a trend filter), use the “greater than” operator:

Candle Close greater than SMA

This is the same principle behind all channel indicators: Bollinger Bands, Donchian Channel, and others. Their logic compares the Close of a candle against the upper or lower band:

Candle Close > Bollinger Upper Band → close above the band
Candle Close < Bollinger Lower Band → close below the band

Candle Volume — working with volume data

Section titled “Candle Volume — working with volume data”

Candle lets you retrieve the volume of a candle and compare it against another value. Two options are available:

1. Compare with Hull Volume Weighted Average

The only volume-based moving average available on the platform is Hull Volume Weighted Average. If the current volume exceeds its value, this confirms the strength of the move:

Candle Volume greater than Hull MA on volume

2. Compare current volume with volume N candles ago

Using Shift, you can compare the current candle’s volume with the volume of the same timeframe N periods back. For example, current volume is greater than it was 5 candles ago.


Using Shift — comparing data across candles

Section titled “Using Shift — comparing data across candles”

Shift is used to access past candle values and compare them with current data or with each other. This lets you build conditions based on multi-candle patterns.

For example, a condition “the previous closed candle was bullish”:

Candle (Close, shift 1) > Candle (Open, shift 1)

Or a classic two-candle engulfing pattern:

Candle (Close, shift 1) < Candle (Open, shift 1) [previous candle — bearish]
Candle (Close, shift 0) > Candle (Open, shift 0) [current candle — bullish]

Candle is a universal bridge between market data and condition logic. It lets you build strategies based on real price action rather than derivative indicators alone.

Choosing the right operator (greater/less vs crosses up/down) determines how often conditions fire: “greater than” gives a continuous signal during a trend, while “crosses” gives a one-time signal at the point of breakout.

Candle is the right tool for these scenarios:

  • Price crossing an indicator — use the “crosses up/down” operator to enter/exit on breakout
  • Trend filter — use “greater/less than” to keep a condition active throughout a trend
  • All channel indicators (Bollinger, Donchian) — work by comparing Candle Close against channel lines
  • Volume analysis — compare against Hull Volume Weighted Average, or against candle volume N periods ago using Shift
  • Multi-candle patterns — analyze historical candle data using the Shift parameter

Start with Candle Close — it is the direct equivalent of the legacy “Price” indicator and is the foundation of most strategies on the platform.