Optional_entryDCA (Dollar Cost Averaging) entry history. First element is always the original priceOpen at signal creation. Each subsequent element is a new averaging entry added by averageBuy(). Effective entry price = simple arithmetic mean of all price values. Original priceOpen is preserved unchanged for identity/audit purposes.
Cost of this entry in USD (e.g. 100 for $100 position)
Price at which this entry was executed
Unix timestamp in milliseconds when this entry was executed
Internal runtime marker for scheduled signals
Optional_partialHistory 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):
Running cost basis (sum of entry costs) at the moment this partial was executed, BEFORE applying the percent reduction. Stored as a snapshot so helpers don't need to replay the full entry history. Effective entry price at this partial = costBasisAtClose / Σ(entry.cost/entry.price for entries[0..entryCountAtClose])
Price at which this partial was executed
Number of _entry elements at the moment this partial close was executed. Used to slice _entry to only entries that existed at this partial.
Percentage of position closed (0-100)
Unix timestamp in milliseconds when this partial close was executed
Type of partial close: profit (moving toward TP) or loss (moving toward SL)
Best price seen in profit direction during the life of this position. Initialized at position open with priceOpen/pendingAt. Updated on every tick/candle when price moves toward TP (currentDistance > 0).
Optional_trailingTrailing stop-loss price that overrides priceStopLoss when set. Updated by trailing() method based on position type and percentage distance.
Optional_trailingTrailing 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.
Cost of the initial position entry in USD (first entry, not DCA). Inherited from ISignalRow. Explicitly surfaced here for consumer visibility.
Unique exchange identifier for execution
Unique frame identifier for execution (empty string for live mode)
Unique signal identifier (UUID v4 auto-generated)
Expected duration in minutes before time_expired
OptionalnoteHuman-readable description of signal reason
Original entry price set at signal creation (unchanged by averaging). Mirrors signal.priceOpen which is preserved for identity/audit purposes.
Original stop-loss price set at signal creation.
Original take-profit price set at signal creation.
Total executed percentage from partial closes. Sum of all percent values from _partial array (both profit and loss types). Represents the total portion of the position that has been closed through partial executions. Range: 0-100. Value of 0 means no partial closes, 100 means position fully closed through partials.
Pending timestamp in milliseconds (when position became pending/active at priceOpen)
Unrealized PNL at the time this public signal was created. Calculated using toProfitLossDto with the currentPrice at the moment of emission.
Trade direction: "long" (buy) or "short" (sell)
Entry price for the position.
Stop loss exit price (must be < priceOpen for long, > priceOpen for short)
Take profit target price (must be > priceOpen for long, < priceOpen for short)
Signal creation timestamp in milliseconds (when signal was first created/scheduled)
Unique strategy identifier for execution
Trading pair symbol (e.g., "BTCUSDT")
Unix timestamp in milliseconds when this signal was created/scheduled in backtest context or when getSignal was called in live context (before validation)
Total number of entries in the DCA _entry history (_entry.length). 1 = no averaging done (only initial entry). 2+ = averaged positions.
Total number of partial closes executed (_partial.length). 0 = no partial closes done. 1+ = partial closes executed.
Risk signal row for internal risk management. Extends ISignalDto to include priceOpen, originalPriceStopLoss and originalPriceTakeProfit. Used in risk validation to access entry price and original SL/TP.