Complete signal with auto-generated id. Used throughout the system after validation.
id: string
Unique signal identifier (UUID v4 auto-generated)
priceOpen: number
Entry price for the position
exchangeName: string
Unique exchange identifier for execution
strategyName: string
Unique strategy identifier for execution
frameName: string
Unique frame identifier for execution (empty string for live mode)
scheduledAt: number
Signal creation timestamp in milliseconds (when signal was first created/scheduled)
pendingAt: number
Pending timestamp in milliseconds (when position became pending/active at priceOpen)
symbol: string
Trading pair symbol (e.g., "BTCUSDT")
_isScheduled: boolean
Internal runtime marker for scheduled signals
_partial: { type: "profit" | "loss"; percent: number; price: number; }[]
History of partial closes for PNL calculation. Each entry contains type (profit/loss), percent closed, and price. Used to calculate weighted PNL: Σ(percent_i × pnl_i) for each partial + (remaining% × final_pnl)
Computed values (derived from this array):
_trailingPriceStopLoss: number
Trailing stop-loss price that overrides priceStopLoss when set. Updated by trailing() method based on position type and percentage distance.
_trailingPriceTakeProfit: number
Trailing take-profit price that overrides priceTakeProfit when set. Created and managed by trailingTake() method for dynamic TP adjustment. Allows moving TP further from or closer to current price based on strategy. Updated by trailingTake() method based on position type and percentage distance.