Plotting # of HH or LL

Questions about MultiCharts and user contributed studies.
AdrianP
Posts: 46
Joined: 02 Sep 2014
Has thanked: 2 times
Been thanked: 1 time

Plotting # of HH or LL

Postby AdrianP » 13 Aug 2022

Many people use Price Channels or Donchian Channels in their coding, but I would like to plot the reverse of that, being the actual number of Highest Highs or Lowest Lows that is taking place. But I am unable to figure out how to do it. Any help would be appreciated.

So, as price is rallying or falling, I want to plot a line or histogram that shows the number of new highs or new lows being exceeded.
The plot would probably need to be 2 lines, although 1 of those lines would mostly be zero or close to it when a trend move was taking place.

I would also need to limit the lookback. If a market was hitting new all time highs or lows, then the plot would be infinite, which clearly would cause the plot to blow up. So it needs to max out at some point, being the set lookback length.

Return to “MultiCharts”