The settings by name, each one optional where the positional form's is.
https://screamer.readthedocs.io/en/latest/functions_fin/BacktestPortfolioTarget.html for the full reference.
Backtest K assets traded toward per-asset target weights, notionals, or positions from one shared capital account, filled at each step's price.
Optionalfee: number | number[]
Fractional fee on the traded notional, one value for all assets or one per asset.
Optionalslippage: number | number[]
Adverse price offset on every fill, read in slippage_unit, one value for all assets or one per asset.
OptionalslippageUnit: string
Unit of slippage: "fraction" of the reference price (5 bps = 5e-4), "ticks" of tick_size, or "price".
OptionaltickSize: number | number[]
Price grid per asset (0 = continuous). Slippage offsets round up to whole ticks.
Optionalmultiplier: number | number[]
Contract multiplier per asset, applied to pnl, notional, and proportional fees.
OptionalfeePerContract: number | number[]
Fixed fee per contract traded, one value for all assets or one per asset.
Optionalsize: string
What a target means: "weight" (a fraction of portfolio equity), "notional" (a currency amount), or "units" (a position).
OptionalinitialCapital: number
Starting capital. Portfolio equity is this plus the summed pnl of all assets; weights are fractions of it.
OptionalrebalanceBand: number
Trade a held asset back to its target when its holding drifts from it by more than this fraction of equity (0 = never). Needs size "weight" or "notional".
Optionalrebalance: string
When the band trips: "drifted" trades only the assets beyond it, "all" rebalances every asset that has a target.
OptionalmaxGross: number
Largest gross exposure, sum of absolute position values over equity. Orders that exceed it are scaled down. The default, inf, is no cap.
OptionalmaxNet: number
Largest absolute net exposure, sum of position values over equity. Orders that exceed it are scaled down. The default, inf, is no cap.
https://screamer.readthedocs.io/en/latest/functions_fin/BacktestPortfolioTarget.html for the full reference.
Backtest K assets traded toward per-asset target weights, notionals, or positions from one shared capital account, filled at each step's price.