Skender.Stock.Indicators is a multi-targeting framework .NET library that produces stock indicators. Send in historical stock price quotes and get back desired technical indicators (such as moving average, relative strength, parabolic SAR, etc). Nothing more.
Find and install the Skender.Stock.Indicators NuGet package into your Project. See more help for installing packages.
PM> Install-Package Skender.Stock.Indicatorsusing Skender.Stock.Indicators;
[..]
// example: get 20-period simple moving average
IEnumerable<SmaResult> results = Indicator.GetSma(history,20);- Aroon Oscillator
- Average Directional Index (ADX)
- Average True Range (ATR)
- Beta Coefficient
- Bollinger Bands
- Chandelier Exit
- Commodity Channel Index (CCI)
- Correlation Coefficient
- Exponential Moving Average
- Heikin-Ashi
- Moving Average Convergence/Divergence (MACD)
- Parabolic SAR
- Relative Strength Index (RSI)
- Simple Moving Average
- Standard Deviation
- Stochastic Oscillator
- Stochastic RSI
- Ulcer Index
Most indicators require that you provide historical quote data and additional configuration parameters.
You can get historical quotes from your favorite stock data provider.
Historical data is an IEnumerable of the Quote class. More info...
For additional configuration parameters, default values are provided when there is an industry standard. You can, of course, override these and provide your own values.
- .NET Core 3.1
- .NET Standard 2.0, 2.1
- .NET Framework 4.6.1
- Stock indicators can be used in any kind of stock analysis software. We had private trading algorithms and charts in mind when originally creating this open library.
- Check out our demo site to see an example usage in a stock chart.
Where can I get historical data?
There are many places to get stock market data. Check with your brokerage or other commercial sites. If you're looking for a free developer API, try Alpha Vantage.
Do you have any documentation?
Yes. The documentation site is a GitHub Pages site here: https://daveskender.github.io/Stock.Indicators. It is automatically generated from the README.md files in this repository, so you can navigate from the above Indicators links too.
More questions? Contact us through the NuGet Contact Owners method (preferred) or submit an Issue with your question if it is publicly relevant.
This NuGet package is an open-source project. If you want to report or contribute bug fixes, new indicators, or feature requests, please review our contributing guidelines.