RWI indicator  [SOLVED]

Questions about MultiCharts and user contributed studies.
cdf
Posts: 20
Joined: 15 Apr 2008
Has thanked: 12 times

RWI indicator

Postby cdf » 14 Oct 2012

Hello,

Is a RWI indicator for multicharts, like in AB, there? thanks.
http://www.AB.com/guide/afl/afl_view.php?id=128

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: RWI indicator

Postby Andrew MultiCharts » 15 Oct 2012

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.

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: RWI indicator  [SOLVED]

Postby ABC » 15 Oct 2012

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]:

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;
RWI of Lows [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[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;
Regards,
ABC


Return to “MultiCharts”