Loop in array, check if array is increasing

 
Hey guys,

What I'm trying to ask is how can I make a loop work for :

for (int i=0; i<arraysize; i++) 
    If (price[i] >price[i+1] & & price[i+1]>price[i+2]....

I've been trying over and over but just can't figure out how to code it. 

Thanks
 

Provided your array is set as series code goes like this:

bool isIncreasing=true;

for(int i=0;i<arraysize-1;i++)
  {
   if(price[i]<price[i+1])
     {
      isIncreasing=false;
      break;
     }
  }
 
lippmaje:

Provided your array is set as series code goes like this:

Yeah I did try with a book... 
I guess I don't know how to use the loop to get it to do what I want it to do. 

For example, if bool=true, then send a request. 

I think my main problem is that I don't know how to use the bool result for a trade. 

Will look further in this
Reason: