RiskBased
class backtide.sizers.RiskBased(risk_pct)
Size based on acceptable risk and stop loss distance.
Computes quantity = (equity * risk_pct) / stop_distance. Industry standard
approach: you define how much equity you're willing to lose and the distance
to your stop, and the sizer works backwards. Requires stop_distance to be
passed to calculate().
| Parameters |
Fraction of equity at risk per trade (e.g.
0.01 for 1%).
|
See Also
Abstract base class for all position sizers.
Kelly Criterion sizing.
Size based on volatility (ATR).
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.