double valLowest;
//--- calculating the lowest value on the x consequtive bars in the range
//--- từ chỉ số thứ 2 đến thứ x bao gồm trên biểu đồ hiện tại
int val_indexL=iLowest(NULL,0,MODE_LOW,currentDailyBars,2);
if(val_indexL!=-1) valLowest=Low[val_indexL];
else PrintFormat("Error...