#indicator #technical #queue #traits #model #fixed-queue

nightly ta-common

Common traits and models for technical indicators

4 releases

0.1.3 Nov 30, 2020
0.1.2 Nov 27, 2020
0.1.1 Nov 26, 2020
0.1.0 Nov 16, 2020

#10 in #technical

Download history 63/week @ 2024-07-22 55/week @ 2024-07-29 68/week @ 2024-08-05 57/week @ 2024-08-12 50/week @ 2024-08-19 51/week @ 2024-08-26 48/week @ 2024-09-02 36/week @ 2024-09-09 48/week @ 2024-09-16 66/week @ 2024-09-23 50/week @ 2024-09-30 45/week @ 2024-10-14 37/week @ 2024-10-21 24/week @ 2024-10-28 46/week @ 2024-11-04

152 downloads per month
Used in 26 crates

MIT license

10KB
249 lines

Build Status

ta-common

Common Traits For Technical Indicators

Fixed Queue

use ta_common::fixed_queue::FixedQueue;
let mut queue=FixedQueue::<i32>::new(2);
queue.add(2);
assert_eq!(1,queue.size());
queue.add(3);
assert_eq!(true,queue.is_full());
queue.add(4);
assert_eq!(2,queue.size());
queue.clear();
assert_eq!(0,queue.size());

No runtime deps