I am trying to create Candle body size indicator, but I am getting errors. Since I am new with indicator coding, I need help with code revision
I am pasting my code here from OnBarUpdate:
protected override void OnBarUpdate()
{
double body = Math.Abs(Close[0] - Open[0]);
double sma = SMA(body, Period);
Value[0] = ((body[0])/(sma[0] + 0.0001)) * 100;
}

Comment