//get distance from averages relative to one above or below
Ind1 = Average[10] (close)
Ind2 = Average[15] (close)
DistPer = abs(Ind1/Ind2)*100
GRAPH DistPer AS "Distance"
I will begin by opening with the same statement as most people that post here with the old ” I am new to coding & Pro Real Code” :).
What i I am trying/would like to do is get the distance as a percentage between 2 averages. Im not sure that i am on the right path as the result is skewed i believe with some outputs being over 100%
I would have thought that it the distance would likely be less given it is the same candle just 2 different averages derived from it.
Any help is appreciated.
Try this as line 4:
DistPer = (Ind1-Ind2)*100/Ind1