WilliamPercentR Indicaror

Questions about MultiCharts and user contributed studies.
ravidevt
Posts: 2
Joined: 11 Sep 2013

WilliamPercentR Indicaror

Postby ravidevt » 23 Jun 2017

Hi,

Kindly convert this into easy language code

input length = 30;
input overBought = 80;
input overSold = 20;

def hh = Highest(high, length);
def ll = Lowest(low, length);
def result = if hh == ll then -100 else (hh - close) / (hh - ll) * (-100);

plot WR = if result > 0 then 0 else result;
WR.SetDefaultColor(GetColor(1));

plot Over_Sold = overSold + 100;
Over_Sold.SetDefaultColor(GetColor(8));

plot Over_Bought = overBought + 100;
Over_Bought.SetDefaultColor(GetColor(8));

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: WilliamPercentR Indicaror

Postby TJ » 23 Jun 2017

Please see post #1 and post #2
viewtopic.php?t=11713


Return to “MultiCharts”