Function commitActivateScheduled

  • Activates a scheduled signal early without waiting for price to reach priceOpen.

    Sets the activation flag on the scheduled signal. The actual activation happens on the next tick() when strategy detects the flag.

    Automatically detects backtest/live mode from execution context.

    Parameters

    • symbol: string

      Trading pair symbol

    • OptionalactivateId: string

      Optional activation ID for tracking user-initiated activations

    Returns Promise<void>

    Promise that resolves when activation flag is set

    import { commitActivateScheduled } from "backtest-kit";

    // Activate scheduled signal early with custom ID
    await commitActivateScheduled("BTCUSDT", "manual-activate-001");