Does anyone have Williams' R indicator code?

Questions about MultiCharts and user contributed studies.
seung1980
Posts: 9
Joined: 15 Jan 2010
Has thanked: 2 times

Does anyone have Williams' R indicator code?

Postby seung1980 » 26 Jan 2010

Hi all,

I am looking for Williams' R indicator which is not available in MC.

Could anyone share the code plz ?

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Re: Does anyone have Williams' R indicator code?

Postby Bruce DeVault » 26 Jan 2010

Hi all,

I am looking for Williams' R indicator which is not available in MC.

Could anyone share the code plz ?

Williams %R is a simple formula - it's something like:

Code: Select all

inputs: period(14);

variables: HHV(0), LLV(0), WPR(0);

HHV = highest(high, period);
LLV = lowest(low, period);
WPR = 0;
if HHV <> LLV then
   WPR = (close - LLV) / (HHV - LLV) * 100;
plot1(WPR, "%r");

tekram
Posts: 96
Joined: 26 May 2009
Has thanked: 6 times
Been thanked: 18 times

Re: Does anyone have Williams' R indicator code?

Postby tekram » 26 Jan 2010

Hi all,

I am looking for Williams' R indicator which is not available in MC.

Could anyone share the code plz ?
MC (and TS) has it under "%R", which is normally what it is called. It uses the function "PercentR", which is basically what the previous poster has posted.

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 26 Jan 2010

I was commenting more or less from memory - I'm pretty sure the algorithm is correct but there are many ways of doing the same thing. If in doubt, you should use the built in function unless this one helps you understand better how it works and what it means.

seung1980
Posts: 9
Joined: 15 Jan 2010
Has thanked: 2 times

Postby seung1980 » 27 Jan 2010

thanks guys.

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 27 Jan 2010

You are welcome - good luck to you.


Return to “MultiCharts”