StrategyEvent

Unified strategy event data for markdown report generation. Contains all information about strategy management actions.

timestamp: number

Event timestamp in milliseconds

symbol: string

Trading pair symbol

strategyName: string

Strategy name

exchangeName: string

Exchange name

frameName: string

Frame name (empty for live)

signalId: string

Signal ID

action: StrategyActionType

Action type

currentPrice: number

Current market price when action was executed

percentToClose: number

Percent to close for partial profit/loss

percentShift: number

Percent shift for trailing stop/take

cancelId: string

Cancel ID for cancel-scheduled action

closeId: string

Close ID for close-pending action

activateId: string

Activate ID for activate-scheduled action

createdAt: string

ISO timestamp string when action was created

backtest: boolean

True if backtest mode, false if live mode

position: "long" | "short"

Trade direction: "long" (buy) or "short" (sell)

priceOpen: number

Entry price for the position

priceTakeProfit: number

Effective take profit price (with trailing if set)

priceStopLoss: number

Effective stop loss price (with trailing if set)

originalPriceTakeProfit: number

Original take profit price before any trailing adjustments

originalPriceStopLoss: number

Original stop loss price before any trailing adjustments

originalPriceOpen: number

Original entry price at signal creation (unchanged by DCA averaging)

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)

effectivePriceOpen: number

Averaged entry price after DCA addition (average-buy action only)

totalEntries: number

Total number of DCA entries after this addition (average-buy action only)

totalPartials: number

Total number of partial closes executed (_partial.length)

pnl: IStrategyPnL

PNL at the moment of this action

cost: number

Cost of this entry in USD (average-buy action only)