Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AMv committed Sep 17, 2020
1 parent bc2d35d commit 6e59d50
Show file tree
Hide file tree
Showing 79 changed files with 12,170 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*.rs]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
tab_width = 4
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
/Cargo.lock
/.vscode/
27 changes: 27 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[package]
authors = ["AMvDev <[email protected]>"]
description = "Yet another Technical Analysis library. For rust now."
edition = "2018"
name = "yata"
version = "0.1.1"

[dependencies]
serde = {version = "*", features = ["derive"], optional = true}

[profile.release]
codegen-units = 1
debug = false
debug-assertions = false
incremental = true
lto = true
opt-level = 3
overflow-checks = false
panic = 'abort'
rpath = false

[features]
default = ["serde"]
period_type_u16 = []
period_type_u32 = []
period_type_u64 = []
value_type_f32 = []
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ a file or class name and description of purpose be included on the same "printed
page" as the copyright notice for easier identification within third-party
archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2020 AMvDev ([email protected])

Licensed under the Apache License, Version 2.0 (the "License");

Expand Down
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# tech-an
# YATA

Yet Another Technical Analysis library

Yet Another Technical Analysis library

YaTA implements most common technical analysis [methods](crate::methods) and [indicators](crate::indicators)

It also provides you an iterface to create your own indicators.

Some commonly used methods:

- Accumulation-distribution index;
- Cross / CrossAbove / CrossUnder;
- Derivative (differential)
- Highest / Lowest / Highest-Lowest Delta
- Hull moving average
- Integral (sum)
- Linear regression moving average
- Momentum
- Pivot points
- Simple moving average
- Weighted moving average
- Volume weighted moving average
- Exponential moving average family: EMA, DMA, TMA DEMA, TEMA
- Symmetrically weighted moving average

And many others.

# Current usafe status

Currently there is no `unsafe` code in the crate.
7 changes: 7 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
edition = "2018"
hard_tabs = true
tab_spaces = 4

# struct_field_align_threshold = 20
# enum_discrim_align_threshold = 20
# fn_single_line = true
Loading

0 comments on commit 6e59d50

Please sign in to comment.