pub struct RollConfig {
pub enabled: bool,
pub min_dte_remaining: u32,
pub min_short_otm_pct: f64,
pub min_dte_extension: u32,
pub target_short_delta_max: f64,
pub max_debit_pct_of_entry_credit: f64,
pub max_rolls_per_position: u32,
pub max_rolls_per_day: u32,
}Expand description
Defensive roll when a credit vertical hits the mechanical stop. Close then reopen farther OTM / later DTE (two sequential orders). Off by default.
Fields§
§enabled: bool§min_dte_remaining: u32Minimum DTE remaining on the tested position to attempt a roll.
min_short_otm_pct: f64Short must still be at least this % OTM (do not roll already-ITM / near-ITM shorts).
min_dte_extension: u32Prefer expiry at least this many calendar days beyond the closed DTE.
target_short_delta_max: f64Cap |short_delta| on the replacement (also tightened vs original short delta − 0.04).
max_debit_pct_of_entry_credit: f64Allow net debit up to this % of entry credit: new_credit - close_debit >= -entry * pct/100.
max_rolls_per_position: u32Max successful rolls for a single lineage (TrackedPosition.rolls_used).
max_rolls_per_day: u32Soft account-wide cap on successful rolls per calendar day.
Trait Implementations§
Source§impl Clone for RollConfig
impl Clone for RollConfig
Source§fn clone(&self) -> RollConfig
fn clone(&self) -> RollConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RollConfig
impl Debug for RollConfig
Source§impl Default for RollConfig
impl Default for RollConfig
Source§impl<'de> Deserialize<'de> for RollConfigwhere
RollConfig: Default,
impl<'de> Deserialize<'de> for RollConfigwhere
RollConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RollConfig
impl RefUnwindSafe for RollConfig
impl Send for RollConfig
impl Sync for RollConfig
impl Unpin for RollConfig
impl UnsafeUnpin for RollConfig
impl UnwindSafe for RollConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more