PolyEase ChartsBack to charts
PolyEase / Research

Portfolio backtesting

Import historical prices or use the synthetic example to compare a strategy with buy-and-hold in independent test windows, or record simulated fills. No live orders.

Compare a multi-asset strategy with buy-and-hold using local historical data, or record simulated fills in your browser.

Walk-forward research

File format and methodology

Upload 2–8 JSON files with one asset each, or one bundle with an assets array and optional capturedAt in Unix milliseconds. Without a capture time, the browser uses the time of import. Up to 5,000 bars per asset and 8 MB total. Assets must share a period and have gap-free, aligned bars. The run uses their common completed history.

{"coin":"BTC","period":"1h","rows":[
  {"timestamp":1735689600000,"open":100,"high":103,"low":99,"close":102,"volume":14}
]}

The rolling train window ranks three fixed parameter sets per selected strategy family (SMA/EMA use fast/slow pairs; RSI and Donchian use the slow period). All mode ranks all 12 candidates by ending return. Each window starts in cash, allocated equally across assets. The preceding 21 bars warm the indicators. Signals formed at a bar close fill at the next open inside the same window. Open positions are marked at the final close.

Optional funding: each asset must provide a funding array with one {"timestamp":1735689600000,"rate":0.0001,"markPrice":100} entry per completed hourly bar, matching timestamps exactly. Long positions held before the settlement pay positive rates and receive negative rates. Settlement occurs before new next-open trades; no inferred rates, liquidation or margin simulation. Input is user-supplied, not verified exchange history.

The benchmark buys each asset at the first test open with the same fees and slippage. Stops and targets use the slipped entry price. If the open passes a threshold, it fills at the open before slippage. If both thresholds are touched intrabar, the selected policy applies.

Paper ledger

Paper broker adapter — manual simulated fills in USD. Live orders and order management are disabled. Cash starts at $10,000. This browser profile stores the ledger locally.

Holdings

AssetQuantityCost basisAverage unit cost

Fill history

Recorded (UTC)AssetSideQuantityPriceCostCash after fillRealized P/L