And¶
Signals · Logic
True only when every input signal is true.
And is the confluence gate. It takes multiple boolean signals and outputs true only when every one of them is true on the same bar. It's how you go from a single trigger to a quality setup — "enter only when the trend is up AND price is in a discount zone AND momentum is turning." Most robust strategies are built around an And gate stacking several independent conditions.
How it works¶
The block accepts a multi-input of boolean signals — wire as many as you like into the one socket — and outputs true on each bar where all of them are simultaneously true. If any single input is false, the result is false. Feed it the outputs of comparison blocks (Greater Than, Less Than), crossovers, structure conditions, or other logic gates.
When to use it¶
Use And to demand confluence before acting — the single most effective way to cut low-quality trades. The classic pattern: bias condition AND location condition AND trigger condition, all into one And, then into a Buy Signal. Be deliberate, though: every extra condition reduces trade frequency, and too many over-filter the strategy into never trading (and invite curve-fitting). Combine states (gates) with one event (trigger) so the result still fires cleanly rather than staying true for long stretches.
Example¶
A confluence long: combine ADX / DMI > 25 (trend exists), price > 200-EMA (bullish bias), and a Crosses Above trigger — wire all three into And, then into a Buy Signal. The trade only fires when trend, bias, and timing align. Backtest in the Tester and compare against any one condition alone.
Tips & gotchas¶
- Confluence cuts noise — stacking conditions is the highest-leverage way to raise trade quality.
- Don't over-stack. Each condition lowers frequency; too many = no trades and curve-fitting.
- Mix states + one event. Several gating states (Greater Than) plus one trigger (Crosses Above) keeps the output a clean pulse.
- Multi-input — wire as many signals as you need into the single socket.
Related blocks¶
Inputs¶
| Socket | Type | What to wire in |
|---|---|---|
| Inputs | signal |
Boolean signals to combine |
Outputs¶
| Output | Type | Plots as | Description |
|---|---|---|---|
| Result | signal |
Signal arrows | Combined boolean signal |
Reference auto-generated from the block catalog · category Signals.