Add Line 50 to WilliamsPercentR?


0
0

Hi Pete,

How do you add codes for line 50 to WilliamsPercentR (see attached screenshot)? Thanks.


#
# TD Ameritrade IP Company, Inc. (c) 2007-2019
#

declare lower;

input length = 10;
input overBought = -20;
input overSold = -80;

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;
Over_Sold.SetDefaultColor(GetColor(8));

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


 

Attachments:
Marked as spam
Posted by (Questions: 21, Answers: 49)
Asked on March 11, 2019 7:19 am
22 views
( at March 14, 2019 9:13 am)
0
Private answer

plot midLine = -50;

Marked as spam
Posted by (Questions: 35, Answers: 1784)
Answered on April 6, 2019 8:23 am