Interface IStrategyTickResultClosed

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

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

Properties

action: "closed"

Discriminator for type-safe union

backtest: boolean

Whether this event is from backtest mode (true) or live mode (false)

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

frameName: string

Time frame name for tracking (e.g., "1m", "5m")

Profit/loss calculation with fees and slippage

Completed signal with original parameters

strategyName: string

Strategy name for tracking

symbol: string

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