MHV Indicator
کتابخانه برای محاسبه اندیکاتور RSI
Using this library you can calculate RSI 14 from api.binance.com or your Close price list (At least 14 and 1000 period for best results)
Dependencies: .NETFramework 4.6.2
Sample code for Binance API:
BinanceRSI MyRSI = new BinanceRSI();
MyRSI.AddCurrency("BTCUSDT","5m",ref Error); // can add infinite currency
MyRSI.Calculate(ref Error); // this Calculate RSI and can use in a loop timer for live Calc.
RSIModel LastRSI = MyRSI.GetLastRSI("BTCUSDT","5m"); // Get last RSI in RSIModel(OpenTime,RS,RSI)
List<RSIModel> RSIList = MyRSI.GetAllRSI("BTCUSDT","5m"); // Get All(1000-14) candles RSI in List<RSIModel>
Sample code for your close price list:
List<CloseModel> CloseList= YourCloseList;// Set Your close price list in CloseModel(ClosePrice,Opentime);
CloseListRSI MyRSI = new CloseListRSI(CloseList);
MyRSI.Calculate(ref Error); // Calculate RSI
RSIModel LastRSI = MyRSI.GetLastRSI(); // Get last RSI in RSIModel(OpenTime,RS,RSI)
List<RSIModel> RSIList = MyRSI.GetAllRSI(); // Get All(1000-14) candles RSI in List<RSIModel>
If this project is supported, more indicators will be added in the future.