pub struct ConfiguredInstance {
pub adapter: BacktestConfiguredStrategyAdapter,
pub analysis: AnalysisPipeline,
pub entry_profiles: PreparedEntryProfiles,
pub feed_from: Option<NaiveDateTime>,
}Expand description
One configured strategy instance of a portfolio replay.
Fields§
§adapter: BacktestConfiguredStrategyAdapter§analysis: AnalysisPipeline§entry_profiles: PreparedEntryProfilesProfiles this instance’s Entries select from, by entry class or as the instance default.
feed_from: Option<NaiveDateTime>First instant whose market events this instance’s series read, normally its own derived warmup start. A shared feed may begin earlier for another instance, and without this bound a strategy with a shorter warmup would become ready, and could trade, before the window it was asked to evaluate.
Implementations§
Source§impl ConfiguredInstance
impl ConfiguredInstance
pub fn new( adapter: BacktestConfiguredStrategyAdapter, analysis: AnalysisPipeline, ) -> Self
pub fn with_entry_profiles(self, profiles: PreparedEntryProfiles) -> Self
pub fn with_feed_from(self, from: NaiveDateTime) -> Self
pub fn strategy_id(&self) -> &str
pub fn instance_id(&self) -> &str
Auto Trait Implementations§
impl !RefUnwindSafe for ConfiguredInstance
impl !Sync for ConfiguredInstance
impl !UnwindSafe for ConfiguredInstance
impl Freeze for ConfiguredInstance
impl Send for ConfiguredInstance
impl Unpin for ConfiguredInstance
impl UnsafeUnpin for ConfiguredInstance
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