CATEGORY
Logic nodes
40 Logic building blocks in the Algovex node library. Each is a node you can drop on the visual canvas, connect into a strategy, backtest and export. No code required.
Entry/Exit Parent Links
Pairs entry and exit signals into trade links. Outputs active trade state, entry/exit indices, direction, and optional lifecycle triggers for building complete trade workflows.
If-Then-Else
If-Then-Else branching node that selects between two value paths based on a boolean condition. Use to route different parameter values based on market state (e.g., use tight stops in low volatility, wide stops in high volatility).
Liquidity Sweep
Detects when price sweeps through a level and closes back. REQUIRES a level input wired from another node — without it, this node does nothing. Use with nodes that output price levels (e.g., equal highs, equal lows, swing levels). Triggers when price pierces the level and returns.
Logic AND
Boolean AND gate. Returns true only when all provided inputs are true. Includes strict wiring mode and optional trigger emission for result changes.
Logic Between
Range membership filter with persistent state. Detects enter/exit events and supports continuous triggers while inside or outside a range.
Logic Close Above
Evaluates whether a value is above a level, crosses above it, or touches it using a tolerance band. Supports series, prev/value, or candle close inputs.
Logic Compare
Compares two numeric values with tolerance, exposing difference metrics and trigger modes (result, crosses, touches).
Logic Cooldown
Blocks repeated signals for a configurable number of bars. Remembers the last allowed signal internally (per-bar state) and enforces the cooldown window automatically. Emits optional allow/block triggers and exposes remaining bars.
Logic Counter
Counts true conditions across multiple modes (total, consecutive, since). Emits trigger events on thresholds and resets.
Logic Cross
Detects crossover and crossunder events between two series or a series and a fixed level. Use as an entry trigger when a fast indicator crosses above/below a slow one (e.g., MACD signal cross, RSI crossing 50, price crossing a moving average).
Logic Debounce
Requires a signal to remain true for N consecutive bars before confirming. Filters out brief spikes and false signals. Use to ensure entry conditions are sustained rather than momentary — reduces whipsaws in noisy markets.
Logic Delta
Computes the change (delta), absolute change, and percent change between current and previous values. Emits triggers when changes exceed thresholds. Use to detect sudden moves, acceleration, or deceleration in any numeric series.
Logic Fakeout
Detects a breakout beyond a level and confirms a reversal back across it within a short window. Useful for trap or fakeout detection.
Logic Grab
Detects when price passes through a specified level. REQUIRES a level input wired from another node — without it, this node does nothing. Use with nodes that output price levels (e.g., equal highs, equal lows, swing levels, order blocks). Triggers when price breaches the connected level.
Logic Latch
Stateful set/reset latch that persists a boolean state across bars until explicitly reset. Use to remember that a condition occurred earlier (e.g., latch on when FVG forms, reset when it fills) and gate downstream logic based on that memory.
Logic Memory
Captures and stores a numeric value when captureSignal is true. Supports update modes, reset, and optional trigger emission. State is keyed by symbol/timeframe/label.
Logic NOT
Boolean NOT gate. Inverts a single input signal and optionally emits triggers on true/false or state changes.
Logic OR
Boolean OR gate. Returns true when any provided input is true. Includes strict wiring mode and optional trigger emission for result changes.
Logic Price Move To
Tracks price moving toward a level or range and emits triggers on approach, reach, cross, enter, or exit events.
Logic Sequence
Detects when boolean conditions fire in a specific order within a configurable timeout window. Use to build multi-step entry confluences (e.g., first MSS, then FVG, then OTE retracement — all within 20 bars).
Logic Signal Combiner
Weighted boolean combiner that outputs a score, percentage, and result based on confluence. Supports weighted sum, majority rule, and unanimous modes with optional triggers.
Logic State Machine
Four-state finite state machine with per-state transitions. Maintains state across bars and emits optional transition triggers.
Logic Switch
Multi-branch switch node that evaluates cases in order and returns the first matching result. Use to implement regime-dependent logic (e.g., different indicator settings for trending vs ranging vs volatile market states).
Logic Threshold
Classifies values relative to threshold bands and emits trigger events on crosses, touches, or zone changes.
Logic Touches Count
Counts how many times price touches a level within a lookback window. Use to measure level significance — a support with 4+ touches is stronger than one with 1 touch. Gate entries based on minimum touch count for higher-probability levels.
Logic Touch Level
Detects when price touches a specified level via wick, body, or close proximity. Use as a trigger for level interactions — for example, trigger when price wicks into an order block or when close touches a support level.
Logic XOR
Boolean XOR gate. Returns true when the two inputs differ and supports optional triggers on difference/match/change.
Logic Zone Retest
Detects and counts retests of a generic price zone (any zone type) with configurable touch rules and triggers.
Max Drawdown Monitor
Monitors drawdown from equity peak. When drawdown exceeds the threshold, triggers a circuit breaker signal. Use as a filter to stop trading during losing streaks. Protects capital from catastrophic losses.
Modulo
Computes the remainder of dividing inputValue by divisor. Handles division by zero gracefully.
Multiply
Multiplies the input value by a configurable factor. Handles overflow gracefully.
Overlap
Computes overlap between two numeric ranges (A and B) with overlap percentage metrics and optional trigger conditions.
Percentage Change
Computes the percentage change of a price source over a configurable lookback period.
Position Size Calculator
Computes position size based on risk management rules. Fixed fractional: risk X% of account per trade. Volatility-based: size inversely proportional to ATR. Kelly criterion: optimal fraction based on win rate and win/loss ratio.
Power
Raises inputValue to the given exponent. Handles edge cases like 0^0 = 1 and overflow.
Range Extreme
Finds the lowest low or highest high between two events. Use to get the lowest low since a liquidity grab, the highest high of a sweep movement, or the price extreme between any two signals. Wire fromSignal to the start event (grab, retest, displacement) and toSignal to the end event (entry, MSS, confirmation). Outputs lowestLow and highestHigh for stop-loss placement or range analysis.
Round
Rounds a value to a configurable number of decimal places.
Square Root
Computes the square root of the absolute value of the input. Handles negative inputs by taking abs first.
Subtract
Subtracts a value from the input: output = inputValue - value.
Utility Delay
Delays a signal or candle-derived value by N bars (close[N]-style primitive). Use to compare current bar values to past bars (e.g. close > close[3]) or to lag any boolean / numeric stream by a fixed bar count.
Explore other categories