Returns the best price reached in the profit direction during this position's life.
Initialized at position open with the entry price and timestamp. Updated on every tick/candle when VWAP moves beyond the previous record toward TP:
Returns null if no pending signal exists. Never returns null when a signal is active — always contains at least the entry price.
Trading pair symbol
Promise resolving to { price, timestamp } record or null
{ price, timestamp }
import { getPositionHighestProfitPrice } from "backtest-kit";const peak = await getPositionHighestProfitPrice("BTCUSDT");// e.g. { price: 44500, timestamp: 1700000000000 } Copy
import { getPositionHighestProfitPrice } from "backtest-kit";const peak = await getPositionHighestProfitPrice("BTCUSDT");// e.g. { price: 44500, timestamp: 1700000000000 }
Returns the best price reached in the profit direction during this position's life.
Initialized at position open with the entry price and timestamp. Updated on every tick/candle when VWAP moves beyond the previous record toward TP:
Returns null if no pending signal exists. Never returns null when a signal is active — always contains at least the entry price.