Hello,
Is a RWI indicator for multicharts, like in AB, there? thanks.
http://www.AB.com/guide/afl/afl_view.php?id=128
RWI indicator [SOLVED]
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: RWI indicator
There is no "RWI" or "Random Walk Index" indicator/function both in regular version of MC and in MC .NET. Unfortunately you will have to write it on your own or find in web in respective language and import it.
- ABC
- Posts: 723
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 410 times
- Contact:
Re: RWI indicator [SOLVED]
Here are the two functions you will need. They have been coded by Pierre Orphelin and been published in the Sirtrade International Trading Systems Newsletter, Volume 1-1.
You need to create the two functions and can call them from an indicator or system then.
RWI of Highs [Function code]:
RWI of Lows [Function code]:
Regards,
ABC
You need to create the two functions and can call them from an indicator or system then.
RWI of Highs [Function code]:
Code: Select all
Inputs :len(NumericSimple),beg(numericsimple);
Vars: Counter(0),maxi(0);
Array : RW[100](0);
if len>beg then begin
value1=truerange;
For Counter =beg to len begin
value2=average(value1,counter)*squareroot(counter);
if value2<>0 then begin
value3=(h-L[Counter])/value2;
end else begin
value3=0;
end;
RW[Counter] = value3;
End;
maxi=0;
For Counter=beg to len begin
if RW[Counter] >= maxi then begin
maxi = RW[Counter];
end;
end;
end;
hhrwi=maxi;
Code: Select all
Inputs :len(NumericSimple),beg(numericsimple);
Vars: Counter(0),maxi(0);
Array :RW[100](0);
if len>beg then begin
value1=truerange;
For Counter =beg to len begin
value2=average(value1,counter)*squareroot(counter);
if value2<>0 then begin
value3=(H[Counter]-L)/value2;
end else begin
value3=0;
end;
RW[Counter] = value3;
End;
maxi=0;
For Counter=beg to len begin
if RW[Counter] >= maxi then begin
maxi =RW[Counter];
end;
end;
end;
llrwi=maxi;
ABC