pub enum EntryGeometryPolicy {
Strict,
Permissive,
}Expand description
Directional geometry policy for signal stoploss and targets resolved against the execution price.
Variants§
Strict
Reject entry resolution when a signal level sits on the wrong side of the entry price.
Permissive
Retain crossed signal levels at profile resolution. The engine may still reject ordinary Open geometry before a position is created.
Trait Implementations§
Source§impl Clone for EntryGeometryPolicy
impl Clone for EntryGeometryPolicy
Source§fn clone(&self) -> EntryGeometryPolicy
fn clone(&self) -> EntryGeometryPolicy
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 moreimpl Copy for EntryGeometryPolicy
Source§impl Debug for EntryGeometryPolicy
impl Debug for EntryGeometryPolicy
Source§impl Default for EntryGeometryPolicy
impl Default for EntryGeometryPolicy
Source§fn default() -> EntryGeometryPolicy
fn default() -> EntryGeometryPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntryGeometryPolicy
impl<'de> Deserialize<'de> for EntryGeometryPolicy
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
impl Eq for EntryGeometryPolicy
Source§impl PartialEq for EntryGeometryPolicy
impl PartialEq for EntryGeometryPolicy
Source§impl Serialize for EntryGeometryPolicy
impl Serialize for EntryGeometryPolicy
impl StructuralPartialEq for EntryGeometryPolicy
Auto Trait Implementations§
impl Freeze for EntryGeometryPolicy
impl RefUnwindSafe for EntryGeometryPolicy
impl Send for EntryGeometryPolicy
impl Sync for EntryGeometryPolicy
impl Unpin for EntryGeometryPolicy
impl UnsafeUnpin for EntryGeometryPolicy
impl UnwindSafe for EntryGeometryPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.