Closes the pending signal without stopping the strategy.
Clears the pending signal (active position).
Does NOT affect scheduled signals or strategy operation.
Does NOT set stop flag - strategy can continue generating new signals.
Automatically detects backtest/live mode from execution context.
Parameters
symbol: string
Trading pair symbol
OptionalcloseId: string
Optional close ID for tracking user-initiated closes
Returns Promise<void>
Promise that resolves when pending signal is closed
Example
import { commitClosePending } from"backtest-kit";
// Close pending signal with custom ID awaitcommitClosePending("BTCUSDT", "manual-close-001");
Closes the pending signal without stopping the strategy.
Clears the pending signal (active position). Does NOT affect scheduled signals or strategy operation. Does NOT set stop flag - strategy can continue generating new signals.
Automatically detects backtest/live mode from execution context.