Interface IStrategyPnL

Profit and loss calculation result. Includes adjusted prices with fees (0.1%) and slippage (0.1%).

interface IStrategyPnL {
    pnlCost: number;
    pnlEntries: number;
    pnlPercentage: number;
    priceClose: number;
    priceOpen: number;
}

Properties

pnlCost: number

Absolute profit/loss in USD: pnlPercentage / 100 * pnlEntries

pnlEntries: number

Total invested capital in USD: sum of all entry costs

pnlPercentage: number

Profit/loss as percentage (e.g., 1.5 for +1.5%, -2.3 for -2.3%)

priceClose: number

Exit price adjusted with slippage and fees

priceOpen: number

Entry price adjusted with slippage and fees