What You Can Compare
A Comparison Node compares two values. Most examples put one indicator against another, which leaves the impression that indicators are the only thing it accepts.
They aren't. Raw price, a previous candle's value, and an N-candle high or low are all valid on either side - so several common price action rules are already expressible without a single indicator.
This page lists everything you can put into a comparison.
The operandsโ
| Operand | What it is | How you select it |
|---|---|---|
| Indicator | Any of the supported indicators - EMA, RSI, Supertrend, VWAP, ATR and the rest | Search for it in either side of the node |
| Raw price | The candle's own Close, Open, High or Low | Pick Candle in the list and set its Source |
| Averaged price | OHLC4, HLC3, HL2 | Also Candle, with Source set to OHLC4, HLC3 or HL2 |
| Pivot level | A support or resistance level from the previous session, such as R1 or CPR's TC | The Pivot Points or CPR indicator |
| Previous candle values | What a value was N candles ago | Set Offset |
| N-candle high or low | The highest or lowest value over a lookback window | The Min Max indicator |
| Constant | A fixed number, such as 60 or 24000 | Pick Number at the top of the list, then type the value into the field that appears on the node |
| Time | The candle's clock time | A Time Node, not a Comparison Node |
Any of these can appear on either side. Close > EMA(20), EMA(20) < Close and RSI(14) > 60 are all valid.
When you click a side of a Comparison Node, the list starts with Number, followed by the indicators, including CANDLE. A Candle operand shows on the node as its settings in order, for example CANDLE (OHLC, CLOSE, 5m, 0): candle type, source, timeframe, and offset.
Combining values with + โ ร รทโ
Each operand on a Comparison Node has + โ ร รท controls beside it. Use them to turn one side of a comparison into a small calculation instead of a single value.
| Rule | Comparison |
|---|---|
| Price at least 1% above the EMA | Close > EMA(20) ร 1.01 |
| An unusually wide candle | High โ Low > ATR(14) ร 2 |
You can chain more than one operation on the same side of a comparison.
To build one, click an operator next to an operand, then choose the value to combine it with - a Number or any indicator.
Price action rules you can already buildโ
"Above the previous 20-candle high"โ
Use Min Max with min_max_type = MAX, source = HIGH, period = 20. Compare Close against it with Crosses Above.
There's a full worked example in Min Max, including the matching breakdown exit.
"Higher than the previous candle"โ
Use Offset. Offset = 0 is the current, still forming candle; Offset = 1 is the last completed one; 2 is the one before that.
So "this candle's close is above the previous candle's high" is a Candle with Source Close and Offset 0, compared with a Candle with Source High and Offset 1.
"RSI was oversold and has recovered"โ
Two comparisons joined with an AND Logical Node: RSI(14) with Offset = 1 below 30, and RSI(14) with Offset = 0 above 30.
"Only after 9:30"โ
A Time Node, ANDed with your entry conditions.
Mixing timeframesโ
Each indicator carries its own Timeframe, and one strategy can mix them - for example, enter on a 5m signal only when the 1H trend agrees. Add both conditions and join them with AND.
Worked example: a breakout with a trend filterโ
"Buy when a 5-minute candle closes above the previous 20-candle high, and price is above VWAP."
| Piece | How it's built |
|---|---|
| 5-minute candles | Timeframe 5m on every indicator in the strategy |
| Above the previous 20-candle high | Comparison: Close Crosses Above Min Max (MAX, HIGH, period 20) |
| Price above VWAP | Comparison: Close Greater Than VWAP |
| Both must hold | An AND Logical Node joining the two |
Index spot charts carry no volume, so VWAP and VWMA don't work on them. Use a futures chart for the index instead, or drop the volume weighted indicator from the condition. See Trend Indicators.
Relatedโ
- Building on the Canvas - the four node types and how they connect
- Indicator Parameters - Source, Offset, Timeframe and Candle Type explained in full
- All indicators - trend, momentum and volatility