i would appreciate your help with an indicator i'm trying to code in nt.
it is a very simple idea, on a daily bar chart, i would like an indicator that can find the highest high for the last 2 years only (500 bars or so), and then with that numeric value for the highest high, plot a set of horizontal lines. these lines would be plotted at intervals of 10%, the first horizontal line would be plotted at the value resulting of the highest high of the period by a factor of 100% (1), the second one would be the same highest high by a factor of 90% (.9), and so on until 10% and 0%.
if there was a way to plot these lines in different colors each and paint the chart bars that fall between two lines with different colors that would be even better.
thanks a lot, regards.
Comment