Hi,

I would say you can use a for-loop.
Something like that:

Code
int dayLookBackStart = 1;
int lookBackPeriod = 5;
int i;

bool risingXDays = true;

for(i=dayLookBackStart ; i<lookBackPeriod-1; i++){
 if(Prices[i]<Prices[i+1]){
  risingXDays = false;
  break;
 }
}


risingXDays is true if during the lookBackPeriod you have continues higher Prices or false if the series is broken in one of the days.
Try it out it should work.

Cheers