Multiple High and Lows of the Day script

Currently the HHV() and LLV() functions provides the Highest high and Lowest Lows of the desired number of bars, but how to get the second Highest High , the third Highest High and so on. So in plain words how do i code a script in Tradescript that will alert when price hits the second Highest high, third Highest High.

second highest and third highest high value is not possible in tradescript