iBandsOnArray, ArrayMaximum, ArrayMinimum return zero values

 

Hello,

Would anyone tell me why I get zero returns? Here is the code:

   double highBollingerArray[10];
   double lowBollingerArray[10];
   ArraySetAsSeries(highBollingerArray, true);
   ArraySetAsSeries(lowBollingerArray, true);

   double highestWaveBollinger = iBandsOnArray(highBollingerArray, 10, 25, 2, 0, MODE_HIGH, 1);
   double lowestWaveBollinger = iBandsOnArray(lowBollingerArray, 10, 25, 2, 0, MODE_LOW, 1);
   Print("highestWaveBollinger: ", highestWaveBollinger);
   Print("lowestWaveBollinger: ", lowestWaveBollinger);

   double maxValueHighestWave = ArrayMaximum(highBollingerArray, WHOLE_ARRAY, 0);
   double minValueLowestWave = ArrayMinimum(lowBollingerArray, WHOLE_ARRAY, 0);
   Print("maxValueHighestWave: ", maxValueHighestWave);
   Print("minValueLowestWave: ", minValueLowestWave);


 

 
  1. Perhaps you should read the manual. Starting with what ArrayMax/Min returns ArrayMaximum - Array Functions - MQL4 Reference
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

  2. Then explain how you expect to get a 25 period moving average with just 10 values.
Reason: