How to find the closing price, open price, high price, low price of any script for last 1 week, 1 month, 1 year?

suppose io want to know

open price , close price , highest price and lowest price of any given script for any given time period .

like for DOLLAR OCT FUT 2015 , I WISH TO KNOW HIGHEST PRICE FOR LAST 10 DAYS , LOWEST PRICE FOR LAST 10 DAYS .

how exactly should i code ?

Section 3.5 should help - http://zerodha.com/varsity/chapter/chart-types/

As per the above query for the 10days highest price

HIGH = HHV(10)

 for the 10days low price

LOW = LLV(10)

thank you … i don’t find this in tradescript book … can u give me page reference ?
how to code for 10 day open and 10 day close ?

check for highest high value