pub struct ZoneArtifact {
pub kind: String,
pub price_top: f64,
pub price_bottom: f64,
pub strength: f64,
pub touches: u32,
pub from_ts: Option<i64>,
pub to_ts: Option<i64>,
}Expand description
A price zone (support/resistance, order block, FVG, liquidity pool, …).
from_ts/to_ts bound the zone in time: the first and last bar it was derived from.
A zone without them can only be drawn as a band across the full width, which loses
where it formed — so emitters should fill them whenever they know. None means
genuinely unknown, not “now”: consumers must not substitute a guess.
Fields§
§kind: String§price_top: f64§price_bottom: f64§strength: f64§touches: u32§from_ts: Option<i64>First bar the zone was derived from, if known.
to_ts: Option<i64>Last bar the zone was derived from, if known.
Implementations§
Trait Implementations§
Source§impl Clone for ZoneArtifact
impl Clone for ZoneArtifact
Source§fn clone(&self) -> ZoneArtifact
fn clone(&self) -> ZoneArtifact
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 ZoneArtifact
impl Debug for ZoneArtifact
Source§impl<'de> Deserialize<'de> for ZoneArtifact
impl<'de> Deserialize<'de> for ZoneArtifact
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
Source§impl From<ZoneArtifact> for Artifact
impl From<ZoneArtifact> for Artifact
Source§fn from(value: ZoneArtifact) -> Self
fn from(value: ZoneArtifact) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ZoneArtifact
impl PartialEq for ZoneArtifact
Source§impl Serialize for ZoneArtifact
impl Serialize for ZoneArtifact
impl StructuralPartialEq for ZoneArtifact
Auto Trait Implementations§
impl Freeze for ZoneArtifact
impl RefUnwindSafe for ZoneArtifact
impl Send for ZoneArtifact
impl Sync for ZoneArtifact
impl Unpin for ZoneArtifact
impl UnsafeUnpin for ZoneArtifact
impl UnwindSafe for ZoneArtifact
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