Function hasNoPendingSignal

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

    Parameters

    • symbol: string

      Trading pair symbol

    Returns Promise<boolean>

    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
    }