Headhunter20
New member
I think I have the position of the current price relative to the high and low of different time frames (Monthly, weekly, and daily)
I would love for someone to take a look at this and help with being able to plot the relative range for the current price position relative to the current candle of a monthly and a weekly chart instead of the highest and lowest of that time frame (maybe a 6month1month chart, a 6month1week chart and of course the 6month1day chart) Any help would be greatly appreciated.
**************************************************
# Monthly Relative Range (MRR)
input price3 = close;
def MonthlyHigh = Highest(high, 21);
def monthlyLow = lowest(low, 21);
def MRR = Round((price3 – monthlyLow) / (MonthlyHigh – monthlyLow) * 100);
AddLabelForReferencing(yes, Concat(MRR, " % MRR"), if MRR > 75 then Color.DARK_GREEN else if MRR < 50 then Color.RED else Color.ORANGE);
def Z = MRR;
#Weekly Relative Range (WRR)
input price2 = close;
def weeklyHigh = Highest(high, 5);
def weeklyLow = Lowest(low, 5);
def WRR = Round((price2 – weeklyLow) / (weeklyHigh – weeklyLow) * 100);
AddLabelForReferencing(yes, Concat(WRR, " % WRR"), if WRR > 75 then Color.DARK_GREEN else if WRR < 50 then Color.RED else Color.ORANGE);
def x = WRR;
#Daily Relative Range (DRR)
input price = close;
def DRR = Round((price2 – low) / (high – low) * 100);
AddLabelForReferencing(yes, Concat(DRR, " % DRR"), if DRR > 75 then Color.DARK_GREEN else if DRR < 25 then Color.DARK_RED else Color.orange);
def y = DRR;
I would love for someone to take a look at this and help with being able to plot the relative range for the current price position relative to the current candle of a monthly and a weekly chart instead of the highest and lowest of that time frame (maybe a 6month1month chart, a 6month1week chart and of course the 6month1day chart) Any help would be greatly appreciated.
**************************************************
# Monthly Relative Range (MRR)
input price3 = close;
def MonthlyHigh = Highest(high, 21);
def monthlyLow = lowest(low, 21);
def MRR = Round((price3 – monthlyLow) / (MonthlyHigh – monthlyLow) * 100);
AddLabelForReferencing(yes, Concat(MRR, " % MRR"), if MRR > 75 then Color.DARK_GREEN else if MRR < 50 then Color.RED else Color.ORANGE);
def Z = MRR;
#Weekly Relative Range (WRR)
input price2 = close;
def weeklyHigh = Highest(high, 5);
def weeklyLow = Lowest(low, 5);
def WRR = Round((price2 – weeklyLow) / (weeklyHigh – weeklyLow) * 100);
AddLabelForReferencing(yes, Concat(WRR, " % WRR"), if WRR > 75 then Color.DARK_GREEN else if WRR < 50 then Color.RED else Color.ORANGE);
def x = WRR;
#Daily Relative Range (DRR)
input price = close;
def DRR = Round((price2 – low) / (high – low) * 100);
AddLabelForReferencing(yes, Concat(DRR, " % DRR"), if DRR > 75 then Color.DARK_GREEN else if DRR < 25 then Color.DARK_RED else Color.orange);
def y = DRR;