Interface IStrategyTickResultActive

Tick result: signal is being monitored. Waiting for TP/SL or time expiration.

interface IStrategyTickResultActive {
    action: "active";
    backtest: boolean;
    currentPrice: number;
    exchangeName: string;
    frameName: string;
    percentSl: number;
    percentTp: number;
    pnl: IStrategyPnL;
    signal: IPublicSignalRow;
    strategyName: string;
    symbol: string;
}

Properties

action: "active"

Discriminator for type-safe union

backtest: boolean

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

currentPrice: number

Current VWAP price for monitoring

exchangeName: string

Exchange name for tracking

frameName: string

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

percentSl: number

Percentage progress towards stop loss (0-100%, 0 if moving towards TP)

percentTp: number

Percentage progress towards take profit (0-100%, 0 if moving towards SL)

Unrealized PNL for active position with fees, slippage, and partial closes

Currently monitored signal

strategyName: string

Strategy name for tracking

symbol: string

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