ux-indicators 0.1.0

Technical Analysis Function Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{Factory};
use crate::indicators::SimpleMovingAverage;

pub struct StochRsiFactory {
}

impl StochRsiFactory {
    pub fn new() -> Self {
        Self{}
    }
}

impl Factory for StochRsiFactory {
    fn create() -> Box<dyn Next<f64, Output = Box<[f64]>>> {
        Box::new(SimpleMovingAverage::default())
    }
}