I am working to calculate RSI
(Relative Strength Index)
. I have data like this
**Date|Close|Change|Gain|Loss**
The formula for calculating this is
RSI = 100 - 100/(1+RS)
where RS = Average Gain / Average Loss
So I want to calculate via some programming language either in JavaScript
or C#
but i don't know exactly how to convert that in programming language or what steps do I need.
If there is anything you want more to understand my problem i will try to explain.