MQL4 - Average body of a candle

[Deleted]  
Is there another way to derive the body of the candle, rather then using moving average.
double AvgBody(int ind)
  {
   double candle_body=0;
///--- calculate the averaged size of the candle's body
   for(int i=ind; i<ind+m_ma_period; i++)
   {
     candle_body+=MathAbs(Open[i]-Close[i]);
   }
   candle_body= (candle_body / m_ma_period);
///--- return body size
 return(candle_body);
  }
 
You could use a ratio, it would give you a value between 0 and 1.

double ratio = MathAbs(open - close) / (high - low);