pub struct KstEngine { /* private fields */ }Expand description
Know Sure Thing with fixed windows.
KST = SMA10(ROC10) + 2 SMA10(ROC15) + 3 SMA10(ROC20) + 4 SMA15(ROC30), each ROC in percent of
its past close; extra["signal"] is SMA9(KST), extra["hist"] is KST - signal and
extra["kst"] repeats the value. There are no parameters.
First output: once the signal exists, i.e. with the 53rd bar. Indicator::reset clears all
averages.
Implementations§
Trait Implementations§
Source§impl Indicator for KstEngine
impl Indicator for KstEngine
fn name(&self) -> &str
fn warmup_period(&self) -> usize
fn reset(&mut self)
fn on_bar(&mut self, bar: &Bar) -> Option<IndicatorOutput>
fn alerts(&self) -> Vec<IndicatorAlert>
Source§fn on_checked_bar(
&mut self,
bar: &Bar,
) -> Result<Option<IndicatorOutput>, BarValidationError>
fn on_checked_bar( &mut self, bar: &Bar, ) -> Result<Option<IndicatorOutput>, BarValidationError>
Validates a bar before forwarding it to
Indicator::on_bar.Auto Trait Implementations§
impl Freeze for KstEngine
impl RefUnwindSafe for KstEngine
impl Send for KstEngine
impl Sync for KstEngine
impl Unpin for KstEngine
impl UnsafeUnpin for KstEngine
impl UnwindSafe for KstEngine
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