Skip to main content

indicators/volatility/
mod.rs

1//! Volatility indicators: Bollinger Bands, Keltner Channels, choppiness, Elder Ray, market cycle.
2
3pub mod bollinger;
4pub mod choppiness_index;
5pub mod elder_ray_index;
6pub mod keltner_channels;
7pub mod market_cycle;
8
9pub use bollinger::BollingerBands;
10pub use choppiness_index::ChoppinessIndex;
11pub use elder_ray_index::ElderRayIndex;
12pub use keltner_channels::KeltnerChannels;
13pub use market_cycle::MarketCycle;
14
15use crate::registry::IndicatorRegistry;
16
17/// Register all volatility indicators with the given registry.
18pub fn register_all(reg: &IndicatorRegistry) {
19    reg.register("bollingerbands", bollinger::factory);
20    reg.register("choppinessindex", choppiness_index::factory);
21    reg.register("elderrayindex", elder_ray_index::factory);
22    reg.register("keltnerchannels", keltner_channels::factory);
23    reg.register("marketcycle", market_cycle::factory);
24}