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):
Percentage of position closed (0-100)
Price at which this partial was executed
Type of partial close: profit (moving toward TP) or loss (moving toward SL)
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.
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 stop-loss price set at signal creation. Remains unchanged even if trailing stop-loss modifies effective SL. Used for user visibility of initial SL parameters.
Original take-profit price set at signal creation. Remains unchanged even if trailing take-profit modifies effective TP. Used for user visibility of initial TP parameters.
Pending timestamp in milliseconds (when position became pending/active at priceOpen)
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")
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.
Public signal row with original stop-loss and take-profit prices. Extends ISignalRow to include originalPriceStopLoss and originalPriceTakeProfit for external visibility. Used in public APIs to show user the original SL/TP even if trailing SL/TP are active. This allows users to see both the current effective SL/TP and the original values set at signal creation. The original prices remain unchanged even if _trailingPriceStopLoss or _trailingPriceTakeProfit modify the effective values. Useful for transparency in reporting and user interfaces. Note: originalPriceStopLoss/originalPriceTakeProfit are identical to priceStopLoss/priceTakeProfit at signal creation time.