Less or Equal¶
Signals · Comparison
True where a <= b.
Less-or-Equal is a persistent comparison: it's True on every bar where A ≤ B. It holds true for as long as the condition lasts rather than firing once, so it's the block for an ongoing state check — "is A at or below B right now" — not a crossing event.
How it works¶
Each bar it aligns A and B and outputs True where A is less than or equal to B, False otherwise. Both inputs are series, so B can be an indicator or a Constant. The inclusive boundary means an exact touch counts as true — the difference from the strict LessThan. Lookahead-free.
When to use it¶
Use it as a filter: "only short while price is at or below VWAP," "RSI at or below 50." And it with your trigger to gate entries by an ongoing condition. Use LessThan if the boundary shouldn't count, or CrossesBelow for the moment of crossing.
Example¶
Oversold gate: wire an RSI into A and a Constant of 30 into B; the Less-or-Equal output flags the oversold state, which you can And with a bullish reversal trigger before entering.
Tips & gotchas¶
- Persistent state, not an event — use CrossesBelow for the trigger.
- Inclusive boundary (
≤) — exact equality counts. - Wire a Constant into B for a fixed threshold.
Related blocks¶
Inputs¶
| Socket | Type | What to wire in |
|---|---|---|
| A | series |
Left-hand series — the one DOING the crossing. In an MA crossover this is the FAST line (e.g. EMA-20). In an RSI trigger this is the RSI line itself. |
| B | series |
Right-hand series — the REFERENCE being crossed. In an MA crossover this is the SLOW line (e.g. EMA-50). In an RSI trigger this is the threshold (e.g. constant 30). |
Outputs¶
| Output | Type | Plots as | Description |
|---|---|---|---|
| Cond | signal |
Signal arrows | Boolean result of the comparison |
Reference auto-generated from the block catalog · category Signals.