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));
WilliamPercentR Indicaror
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times