screamer.js
    Preparing search index...

    Function BacktestOHLCOrders

    • Backtest a two-sided order poster on OHLC bars, posting resting bids and asks that fill when the bar's range reaches them.

      Parameters

      • makerFee: number = 0.0

        Fractional fee on a passive (resting) fill; negative for a rebate.

      • takerFee: number = 0.0

        Fractional fee on a marketable (taker) fill.

      • fill: string = "touch"

        Fill rule. "touch" fills when the bar's low/high reaches your quote price; "breach" requires the bar to trade through it.

      • participationRatio: number = 1.0

        Fraction of the quoted size captured on each fill (front-of-queue at 1.0).

      • tickSize: number = 0.0

        Price increment added (subtracted) to the open for a market buy (sell) to model taker slippage.

      • minPosition: number = -Infinity

        Inventory floor; sell fills are capped so the position never falls below it.

      • maxPosition: number = Infinity

        Inventory ceiling; buy fills are capped so the position never exceeds it.

      • multiplier: number = 1.0

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

      • makerFeePerContract: number = 0.0

        Fixed fee (or rebate when negative) charged per contract on maker fills.

      • takerFeePerContract: number = 0.0

        Fixed fee (or rebate when negative) charged per contract on taker fills.

      Returns ScreamerOp

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