trade script code to get today's highest price

I need the trade script code to get today’s highest price. HHV(21) only gives the highest price in the past 21 bars but I need the highest price in the whole day for intraday trading. Please help. Thanks.