pub struct Closed {
pub symbol: String,
pub entry: NaiveDate,
pub exit: NaiveDate,
pub days: usize,
pub ret: f64,
pub pnl: f64,
pub side: &'static str,
}Expand description
One finished position, for win ratio and expectancy.
Fields§
§symbol: String§entry: NaiveDate§exit: NaiveDate§days: usize§ret: f64Profit as a fraction of the capital committed to the position.
pnl: f64§side: &'static strTrait Implementations§
Auto Trait Implementations§
impl Freeze for Closed
impl RefUnwindSafe for Closed
impl Send for Closed
impl Sync for Closed
impl Unpin for Closed
impl UnsafeUnpin for Closed
impl UnwindSafe for Closed
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