Minimum of the last X days

Hi, everything is in the title :

How can i get the minimum of the last X days ( with X>2) ?
double lowest= Lowest(NULL, PERIOD_D1, MODE_LOW, x, 0);

Markus
thanks a lot :)
Where should it be written in MetaEditor to make it work?