Amibroker formulas to get the highest and lowest value in a period in the past/please helps

lehoabcvt

Newbie
Messages
3
Likes
0
Dear,
I’m want to code get the highest and lowest value in a period in the past. For example, I want to know the highest and lower value of S&P500 in period of Jan 01,2018 to Dec 31,2018 ( I can calculate the number of bars from beginning of period to now is 270 bars and the number of bars from ending period to now is 19 bars)
Please kindly help me the formulas in Amibroker to get the highest and lowest value (I am thinking of HHV and LLV but I failed)
Thanks you so much
 
Hi,
If still don't find solution maybe this help:
HS = HHV(H,BarsSince(dn>= 1180101 AND dn<=1181231));
 
Top