Kill Signal
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
- 1Input values are normalised: any non-zero value becomes 1, zero stays 0, null stays null.
- 2The node scans from the end of the normalised array for the last non-null value.
- 3If last value = 1: global
killSwitch = true. If last value = 0:killSwitch = false. - 4The full normalised array (padded with leading nulls for windowed views) is exposed as
valuesfor chart rendering.
Parameters
This node has no configurable parameters.
Inputs & Outputs
| Port | Type | Description |
|---|---|---|
| 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. |
| timestamps | number[] | UNIX ms timestamps for each value. |
| killSwitch | boolean | Current 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.