screamer.js
    Preparing search index...

    Function BacktestPriceTarget

    • Backtest a target position against a value series (price/mark) into a costed mark-to-market equity curve.

      Parameters

      • spread: number = 0.0

        Fractional bid-ask spread crossed on each trade (e.g. 0.0005 = 5 bps). Default 0 is frictionless.

      • fee: number = 0.0

        Fractional taker fee charged on the traded notional.

      • minPosition: number = -Infinity

        Lower bound on the target position. Signals below this value are clamped to it.

      • maxPosition: number = Infinity

        Upper bound on the target position. Signals above this value are clamped to it.

      • multiplier: number = 1.0

        Contract multiplier applied to mark-to-market PnL, fill slippage, and proportional fees.

      • feePerContract: number = 0.0

        Fixed fee (or rebate when negative) charged per contract on each fill.

      Returns ScreamerOp

      https://screamer.readthedocs.io/en/latest/ for the Python reference and full details.