"the price that stock traded the most" AFL code help

Hey guys.
Can you help me with writing a code for idea above.
I want a code just like volume at price concept but without considering volume.
I want a code to calculate the price or price range that the stock have been trading the most.

I'm a newbie in coding. My idea for this code was to define some price ranges and define variables for them. For example X define 1-5 dollars price range, y define 5-10 dollars and ... .
And create a if else condition and if close of bar be in those ranges add +1 to X or y or ... . And in the end the variable X or y or ... Which is bigger numerically shows the price stock traded the most.

Thanks in advance

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Are you a day trader?