[][src]Type Definition yata::core::PeriodType

type PeriodType = u8;

PeriodType is a type for using on methods and indicators params.

For default it is u8 (from 0 to 255). That means you can use up to SMA::new(254), WMA::new(254), etc... That's right, there are not 255, but 254 (u8::MAX - 1)

If you want use larger periods, you can switch it by using crate features: period_type_u16, period_type_u32, period_type_u64.

F.e. cargo build --features period_type_u16

or in your cargo.toml:

[dependencies]
yata = { period_type_u16 = true }

Read more at Features section

See also

ValueType