Interface IStrategyTickResultClosed

Tick result: signal closed with PNL. Final state with close reason and profit/loss calculation.

interface IStrategyTickResultClosed {
    action: "closed";
    closeReason: StrategyCloseReason;
    closeTimestamp: number;
    currentPrice: number;
    exchangeName: string;
    pnl: IStrategyPnL;
    signal: ISignalRow;
    strategyName: string;
    symbol: string;
}

Properties

action: "closed"

Discriminator for type-safe union

closeReason: StrategyCloseReason

Why signal closed (time_expired | take_profit | stop_loss)

closeTimestamp: number

Unix timestamp in milliseconds when signal closed

currentPrice: number

Final VWAP price at close

exchangeName: string

Exchange name for tracking

Profit/loss calculation with fees and slippage

signal: ISignalRow

Completed signal with original parameters

strategyName: string

Strategy name for tracking

symbol: string

Trading pair symbol (e.g., "BTCUSDT")