FixedFractional
class backtide.sizers.FixedFractional(fraction)
Allocate a fixed percentage of total current equity.
Computes quantity = (equity * fraction) / price. The position size
scales with the portfolio: as equity grows, allocations grow, and
vice versa. This is the most common sizing rule.
| Parameters |
Fraction of equity to allocate per trade. Must be in
(0, 1].
|
See Also
Abstract base class for all position sizers.
Divide current equity equally across a fixed number of positions.
Buy a fixed amount of currency worth of the asset.
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.