Trailing stop path backtest

Replay a trailing stop against observed trade prices.

Inputs

Calculation guide

Start at the first observation. Update the running high for longs or low for shorts. A crossing fills at the observed trade price, including any gap. No intraperiod prices assumed.

Read the guide →