What is the script for getting the highest and lowest CLOSE of the last 30 bars? PLEASE HELP

 
Hi,

I am new to MQL4, but desperately need a script to find the highest CLOSE and lowest CLOSE of a given period, let's say 30 bars?

Would really appreciate your help.

Many thanks in advance.

Best regards,

Colin
 
double highestClose = Close[Highest(NULL, 0, MODE_CLOSE, 30, 0)];
double lowestClose = Close[Lowest(NULL, 0, MODE_CLOSE, 30, 0)];
 
Wow, an amazingly fast reply
Thank you VERY much!
Reason: