CATEGORY

Logic nodes

44 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).

  • Indicator Threshold Rejection

    Uses closed indicator samples, not candle wicks. An observed approach crosses or touches the threshold; within Max Bars a later closed sample returns to the approach side. No prior approach means no rejection. Editing a static threshold, missing data, skipped/reversed bars resets the cause. A wired threshold compares each sample with its corresponding threshold. Indicator values never become price levels.

  • Level Pierce & Return

    Fires when price pierces a level that ANOTHER block provides and closes back on the other side of it. It finds no liquidity by itself: without a level from another block (equal highs, equal lows, swing levels, session highs or lows) it does nothing. For liquidity sweeps use the liquidity blocks themselves (equal highs/lows, buy-side / sell-side liquidity), which detect the pool and its sweep.

  • 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 first contact with a specified level, including an exact tap. 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). Use Wick=true detects an intrabar contact; false waits for a close at or beyond the level. A rejection is a separate Logic Sweep condition.

  • 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 Level Select

    Emits ONE price level, chosen by a condition. Wire the price you want into Level When True and the condition that must hold into Condition; the node emits that price while the condition holds. Wire a second price into Level When False to switch between two levels instead. USE THIS whenever a level comes from one node and its confirmation from another — for example a higher-timeframe order block or FVG supplying the entry price while a lower-timeframe structure confirms it. An entry input accepts exactly ONE source, so two structures can never be wired into the same price input directly; this node is how they are combined.

  • 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

    Tracks independent starts and alternative middle events when boolean conditions fire in order within a configurable per-step timeout. 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 State Match

    Gate that is active while a wired state STRING equals one of the configured match values. Wire an indicator's persistent state output (e.g. direction / condition / pricePosition / priceVsCloud) into Input State, list the values that count as "ok to trade" in Match Values, and wire active into the entry gate. Used to turn a directional indicator into a persistent, direction-correct filter.

  • 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.

  • Price / Zone Rejection

    For a single price level, use the same price for both boundaries; for a zone, use its lower and upper boundaries. Price must approach from outside, touch the zone with its wick, and close back outside on the approach side. Exact contact counts. The signal is known at candle close, so a market entry fills at the next open.

  • 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