Skip to main content

Module roll

Module roll 

Source
Expand description

Defensive rolling: when a credit vertical hits the mechanical stop, prefer close + reopen farther OTM / later DTE over eating a full stop (v1: verticals only).

Structs§

RollEligibility

Enums§

RollSkipReason

Functions§

original_width_from_params
roll_biased_dte_min
Prefer later DTE: max(entry dte_min, closed_dte + extension).
roll_biased_entry_rules
Build vertical entry rules biased for a defensive roll replacement.
roll_biased_max_width
Width ≤ original (or entry max_width).
roll_biased_short_delta_max
Cap |short_delta| for the replacement: min(entry max, target, original − 0.04).
roll_eligible
All eligibility gates for attempting a defensive roll on a stop_loss.
roll_money_ok
new_credit - close_debit >= -entry_credit * max_debit_pct / 100
roll_net
spread_type_from_tracked