Inserted Code
double DemLow(int cnt, int sh) { if(Low[cnt]<=Low[cnt+sh] && Low[cnt]<Low[cnt-sh]) { if(sh>1) return(DemLow(cnt,sh-1)); else return(Low[cnt]); } else return(0); }
I have 2 questions please,
1- for the array Low[cnt-sh], what if the value of sh is greater than the value of cnt , so that will make the element of low array will negative. so what will be the out come of this function ? will it return zero or it wont operate?
2-
Inserted Code
if(Low[cnt]<=Low[cnt+sh] && Low[cnt]<Low[cnt-sh]) { if(sh>1) return(DemLow(cnt,sh-1)); else return(Low[cnt]);
thanks in advance