Custom Indicator won't Load in EA

 

Hi, I wrote a custom indicator to use in an EA, but the stupid thing won't load and I can't figure out why.

I've attached its code if you want to help :D

Oh, it seems it only happens in the strategy tester, I get the error "Expert removed because indicator 43 cannot load [4802]"

#property copyright "Copyright 2011, MetaQuotes Software Corp."
#property link      "http://www.mql5.com"
#property version   "1.00"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_plots   1
//--- plot ARMA
#property indicator_label1  "ARMA"
#property indicator_type1   DRAW_LINE
#property indicator_color1  Red
#property indicator_style1  STYLE_SOLID
#property indicator_width1  1
//--- input parameters
input double   a=0;
input double   b0=1;
input double   b1=0;
//--- indicator buffers
double         ARMABuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   SetIndexBuffer(0,ARMABuffer,INDICATOR_DATA);
//---
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,const int prev_calculated,const int begin,const double &price[]) {
//---
   double e0, e1;

  
   
   for (int i = 1; i<rates_total; i++) {
   
      e0 = price[i] - price[0];
      e1 = price[i-1] - price[0];
   
      ARMABuffer[i] = (a*ARMABuffer[i-1] + b0*e0 + b1*e1); 
   
      
   
   }

//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+------------------------------------------------------------------+