Compare Values
Compare two values using logic operators like greater than, less than, or equal.
The Compare Values block takes two values and checks them against each other using a logic operator. Is RSI greater than 70? Is price above the moving average? Is the spread less than 2? This block handles all of those comparisons.
Why It Matters
Compare Values is the most flexible condition block. While other blocks handle specific scenarios (like crossovers), this one can compare anything to anything using any logical relationship. It's the building block for custom strategy logic.
Settings Explained
Source A / Source B — Which data sources to compare. These can be indicator outputs, price values, or other calculated values from your strategy.
Value A / Value B — Specific numeric values to compare when not using dynamic sources. Useful for comparing against fixed thresholds.
Operator — The comparison logic. Options include: Greater Than (>), Less Than (<), Equal To (=), Greater Than or Equal (>=), Less Than or Equal (<=), and Not Equal (!=).
Direction — Whether the comparison applies to bullish signals, bearish signals, or both.
Example Use Case
You want to only trade when ATR is above a minimum level (to avoid choppy low-volatility markets). You connect the ATR output to Source A, set Value B to 0.0020, and use the 'Greater Than' operator. The block only passes the signal through when volatility is sufficient.
Compare Values is your Swiss army knife for custom conditions. If you can't find a pre-built block for what you need, you can almost always build it with Compare Values.
