Yes, you must call the BBands function before you can use rRealLowerBand or rRealUpperBand. See the indicators.c example.