Time frame switch in trade script

Suppose i am using the 1 min chat on trade script. But i want a alert for yesterday high, low close or weekly high, low and monthly high low. What is the code for this. For this afl code is timeframegetprice. Is it possible in trade scipt.

You can use Highest High Value

HIGH = HHV(21) 

and Lowest Low Value

LOW = LLV(21)

Returns the highest/lowest value of the high/low price over the specified number of periods.