I searched around for an answer to this question but I didn't see anywhere where it was answered directly.
I came across a script made by jngy2k and wanted to change it up slightly to also include historical ADR as a percentage and not just the dollar range.
For example AMZN is showing 5.02% ADR today but it is plotting 113.50 ADR. When you look at the graph it shows the range of the stock but not the percentage.
Does anyone know how I would edit the script so that percentage of ADR is plotted instead of dollar range?
Here is the script:
plot ADR = MovingAverage(AverageType.wilders, high-low, length);
ADR.SetDefaultColor(GetColor(6));
AddLabel (yes, "ADR:" + round((ADR) , 3), Color.light_green);
AddLabel (yes, "ADR:" + Round((ADR / close) * 100, 3) + "%", Color.light_green);
I came across a script made by jngy2k and wanted to change it up slightly to also include historical ADR as a percentage and not just the dollar range.
For example AMZN is showing 5.02% ADR today but it is plotting 113.50 ADR. When you look at the graph it shows the range of the stock but not the percentage.
Does anyone know how I would edit the script so that percentage of ADR is plotted instead of dollar range?
Here is the script:
plot ADR = MovingAverage(AverageType.wilders, high-low, length);
ADR.SetDefaultColor(GetColor(6));
AddLabel (yes, "ADR:" + round((ADR) , 3), Color.light_green);
AddLabel (yes, "ADR:" + Round((ADR / close) * 100, 3) + "%", Color.light_green);