Skip to Content

Comparison Rules

Comparison Rules are the most fundamental building block of entry conditions. They let you compare a technical indicator’s current value against either a fixed number or live market data (OHLC values).


How Comparison Rules Work

A Comparison Rule follows a simple structure:

[Indicator] [Operator] [Compare Against] RSI >= 70

The engine evaluates this on every candle close. When the condition is true (and all other group conditions are satisfied), it contributes to generating an entry signal.


Operators

OperatorMeaningExample
>Greater thanRSI(14) > 70
>=Greater than or equal toADX(14) >= 25
<Less thanRSI(14) < 30
<=Less than or equal toATR(14) <= 50
==Equal toStochastic(14) == 50

Compare Against: Fixed Value

The simplest use case — compare an indicator against a static number.

Examples

RuleWhat It Means
RSI(14) > 70Enter when RSI signals overbought territory
ADX(14) >= 25Enter only when the market is trending (ADX above 25)
Bollinger Band Width < 0.05Enter during low-volatility squeeze conditions
MFI(14) > 80Enter when money flow indicates strong buying pressure

When to Use Fixed Values

Fixed-value comparisons are best for indicators that have defined ranges — like RSI (0–100), Stochastic (0–100), or Williams %R (-100 to 0). For price-dependent indicators like SMA or VWAP, use dynamic OHLC comparisons instead.


Compare Against: Live OHLC Data

Instead of a static number, compare an indicator against real-time candle data:

OHLC ValueDescription
OpenThe opening price of the current candle
HighThe highest price of the current candle
LowThe lowest price of the current candle
CloseThe closing price of the current candle
VolumeThe volume of the current candle

Examples

RuleWhat It MeansTrading Edge
VWAP > ClosePrice is trading below VWAPPotential buying opportunity — price is below the volume-weighted average
Supertrend < ClosePrice is above the Supertrend lineBullish trend confirmation
SMA(200) < ClosePrice is above the 200 SMALong-term uptrend validation
EMA(9) > ClosePrice is below the fast EMAShort-term bearish pressure

The Trading Edge

Comparing indicators against live OHLC data creates dynamic conditions that adapt as price moves. This is far more robust than static thresholds because the condition automatically adjusts to changing market contexts.


Combining Comparison Rules

Comparison Rules become powerful when combined with Logic Groups:

Require ALL of: ├── RSI(14) > 60 (Momentum is bullish) ├── VWAP < Close (Price above VWAP — institutional support) └── ADX(14) >= 25 (Market is trending, not ranging)

This creates a confluence filter — all three conditions must align before the strategy enters, dramatically reducing false signals.


Configuration Steps

  1. Select an Indicator — Choose from the indicator dropdown (e.g., RSI, SMA, VWAP)
  2. Set indicator parameters — Period length, source, etc. (e.g., RSI period = 14)
  3. Choose an Operator>, >=, <, <=, or ==
  4. Set the comparison target — Either a fixed number or select an OHLC value
  5. Optionally override the timeframe — Use a different candle interval for this specific rule

Next Steps

Learn how to trigger entries based on indicator crossovers:

→ Next: Crossover Rules

Last updated on