I saw that there is RSIClassic for Multicharts (EasyLanguage version), where the code goes something like
rsi = RSIClassic(close, 12) of data1;
Is there an equivalent RSIClassic indicator/signal for Multicharts.Net?
Is there a RSIClassic equivalent for Multicharts.Net?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Is there a RSIClassic equivalent for Multicharts.Net?
Hello kengonn,
There is no such prebuilt function in MultiCharts .NET.
You can convert the PowerLanguage one. Here is the code for it:
There is no such prebuilt function in MultiCharts .NET.
You can convert the PowerLanguage one. Here is the code for it:
Code: Select all
Inputs: PriceValue(NumericSeries),Len(NumericSimple);
Variables: var0(0), var1(0), var2(0), var3(0), var4(0), var5(0), var6(0),var7(0);
var7 = Len;
var3 = 0;
var4 = 0;
For var0 = 0 To var7-1 Begin
var2 = PriceValue[var0] - PriceValue[var0 + 1];
If var2 >= 0 Then
var1 = 0
Else Begin
var1 = -var2;
var2 = 0;
End;
var3 = var3 + var2;
var4 = var4 + var1;
End;
var5 = var3 / var7;
var6 = var4 / var7;
condition1 = var5+var6 <> 0 ;
If condition1 Then
RSIClassic = 100 * var5 / (var5 + var6)
Else
RSIClassic = 0;