Returns true if there is NO active pending signal for the given symbol.
Inverse of hasPendingSignal. Use to guard signal generation logic.
Automatically detects backtest/live mode from execution context.
Trading pair symbol
Promise - true if no pending signal exists, false if one does
import { hasNoPendingSignal } from "backtest-kit";if (await hasNoPendingSignal("BTCUSDT")) { // safe to open a new position} Copy
import { hasNoPendingSignal } from "backtest-kit";if (await hasNoPendingSignal("BTCUSDT")) { // safe to open a new position}
Returns true if there is NO active pending signal for the given symbol.
Inverse of hasPendingSignal. Use to guard signal generation logic.
Automatically detects backtest/live mode from execution context.