#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 54/week @ 2024-09-25 41/week @ 2024-10-02 21/week @ 2024-10-09 31/week @ 2024-10-16 38/week @ 2024-10-23 32/week @ 2024-10-30 31/week @ 2024-11-06 23/week @ 2024-11-13 45/week @ 2024-11-20 58/week @ 2024-11-27 73/week @ 2024-12-04 61/week @ 2024-12-11 35/week @ 2024-12-18 5/week @ 2024-12-25 14/week @ 2025-01-01 22/week @ 2025-01-08

79 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