#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

#7 in #technical

Download history 75/week @ 2024-03-16 92/week @ 2024-03-23 122/week @ 2024-03-30 55/week @ 2024-04-06 93/week @ 2024-04-13 77/week @ 2024-04-20 82/week @ 2024-04-27 76/week @ 2024-05-04 84/week @ 2024-05-11 65/week @ 2024-05-18 74/week @ 2024-05-25 74/week @ 2024-06-01 40/week @ 2024-06-08 61/week @ 2024-06-15 74/week @ 2024-06-22 19/week @ 2024-06-29

213 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