pub struct PineFills {
pub slippage: f64,
pub mintick: f64,
}Expand description
TradingView’s default assumptions:
- a market order fills at the bar’s open;
- a limit fills if the bar’s range reaches its price, at the better of the limit and the open (a gap through the limit fills at the open);
- a stop fills if the bar’s range reaches its price, at the worse of the stop and the open (a gap through the stop fills at the open);
- slippage moves the fill
slippageticks against the order.
Fields§
§slippage: f64Ticks of slippage applied against the order’s direction.
mintick: f64Tick size, so slippage is a price. Zero disables slippage.
Trait Implementations§
impl Copy for PineFills
Auto Trait Implementations§
impl Freeze for PineFills
impl RefUnwindSafe for PineFills
impl Send for PineFills
impl Sync for PineFills
impl Unpin for PineFills
impl UnsafeUnpin for PineFills
impl UnwindSafe for PineFills
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