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 >= 70The 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
| Operator | Meaning | Example |
|---|---|---|
> | Greater than | RSI(14) > 70 |
>= | Greater than or equal to | ADX(14) >= 25 |
< | Less than | RSI(14) < 30 |
<= | Less than or equal to | ATR(14) <= 50 |
== | Equal to | Stochastic(14) == 50 |
Compare Against: Fixed Value
The simplest use case — compare an indicator against a static number.
Examples
| Rule | What It Means |
|---|---|
RSI(14) > 70 | Enter when RSI signals overbought territory |
ADX(14) >= 25 | Enter only when the market is trending (ADX above 25) |
Bollinger Band Width < 0.05 | Enter during low-volatility squeeze conditions |
MFI(14) > 80 | Enter 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 Value | Description |
|---|---|
| Open | The opening price of the current candle |
| High | The highest price of the current candle |
| Low | The lowest price of the current candle |
| Close | The closing price of the current candle |
| Volume | The volume of the current candle |
Examples
| Rule | What It Means | Trading Edge |
|---|---|---|
VWAP > Close | Price is trading below VWAP | Potential buying opportunity — price is below the volume-weighted average |
Supertrend < Close | Price is above the Supertrend line | Bullish trend confirmation |
SMA(200) < Close | Price is above the 200 SMA | Long-term uptrend validation |
EMA(9) > Close | Price is below the fast EMA | Short-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
- Select an Indicator — Choose from the indicator dropdown (e.g., RSI, SMA, VWAP)
- Set indicator parameters — Period length, source, etc. (e.g., RSI period = 14)
- Choose an Operator —
>,>=,<,<=, or== - Set the comparison target — Either a fixed number or select an OHLC value
- 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