VolatilityScaled
class backtide.sizers.VolatilityScaled(risk_pct)
Size based on volatility (ATR).
Computes quantity = (equity * risk_pct) / atr. Like RiskBased but uses
the instrument's Average True Range as a proxy for stop distance, automatically
shrinking positions on volatile assets and growing them on calm ones. Requires
atr to be passed to calculate().
| Parameters |
Fraction of equity to risk per trade (e.g.,
0.02 for 2%).
|
See Also
Abstract base class for all position sizers.
Allocate a fixed percentage of total current equity.
Size based on acceptable risk and stop loss distance.
Methods
| calculate | Calculate the order quantity for this sizer. |
method backtide.sizerscalculate(equity, price, stop_distance=None, atr=None)
Calculate the order quantity for this sizer.