technical_indicators
technical_indicators copied to clipboard
π Library of technical indicators in Rust. (work in progress)
technical_indicators

Library of technical indicators in Rust.
What?
A technical indicator is a tool that attempts to forecast a technical analysis feature (e.g. support / resistance) based on given data such as historical price and volume.
Typically, a trader or an investor would use technical indicators against an asset (e.g. stocks), and then perform technical analysis to formulate a trading (or investing) decision.
See: https://en.wikipedia.org/wiki/Technical_indicator
Install
Add to your Cargo.toml:
[dependencies]
technical_indicators = "0.5.0"
Next, add this to your crate:
extern crate technical_indicators;
Usage
TBA.
Indicators
Implemented indicators.
Simple Moving Average
Read more: https://en.wikipedia.org/wiki/Moving_average#Simple_moving_average
Exponential Moving Average
Read more: https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average
Ichimoku KinkΕ HyΕ
Read more: https://en.wikipedia.org/wiki/Ichimoku_Kink%C5%8D_Hy%C5%8D
Chores
./pretty.sh: Runrustfmtcargo test: Run tests.cargo check: Quick compile check.
Credits
Thanks to Cryptowatch API for the bitcoin trading data of the GDAX (Coinbase) exchange.
URL used to access the trading data: https://api.cryptowat.ch/markets/gdax/btcusd/ohlc?periods=14400 (4 hour candles)
License
MIT.