Kill Signal

GateRisk Management

The Kill Signal node manages a global kill switch flag that other nodes can check before executing trades. Unlike Activator/Deactivator, the kill switch is stateless per bar: it is set to true if the last value is 1, and reset to false if the last value is 0. It also outputs the full time-series of kill-switch states for chart visualization.

How It Works

  1. 1Input values are normalised: any non-zero value becomes 1, zero stays 0, null stays null.
  2. 2The node scans from the end of the normalised array for the last non-null value.
  3. 3If last value = 1: global killSwitch = true. If last value = 0: killSwitch = false.
  4. 4The full normalised array (padded with leading nulls for windowed views) is exposed as values for chart rendering.
Key difference from Activator: The kill switch reflects the current live value of the signal directly — it does not latch. If the input signal transitions from 1 back to 0, the kill switch is automatically cleared. Activator/Deactivator require an explicit opposing signal to change state.

Parameters

This node has no configurable parameters.

Inputs & Outputs

PortTypeDescription
Input
input(number | null)[]Boolean signal. Non-zero = kill switch ON; 0 = kill switch OFF.
Outputs
values(number | null)[]Normalised input (1/0/null) aligned to the full timestamp range. Visualisable on the chart.
timestampsnumber[]UNIX ms timestamps for each value.
killSwitchbooleanCurrent global kill switch state. true means strategy is halted.

Use Cases

Live drawdown breaker

Connect a rolling P&L signal to a Compare node (P&L < −2%). Feed the Compare output to Kill Signal. When the drawdown condition is met, the kill switch engages, stopping all new trade actions. When P&L recovers above the threshold, the Compare output drops to 0, automatically re-enabling the strategy.

News event blackout

A time-based logic node outputs 1 during scheduled news windows (e.g. FOMC, NFP). Feed this to Kill Signal to suppress all trades during high-impact releases. The kill switch clears automatically when the window ends.