Need HELP with icustom and indicator code

 
Hello,

anyone that can help will be greatly appreciated.

I have been having alot of trouble modifying the code for an indicator called "Daily Range Calculator" originally coded by FxIgor on Forex Factory. I want to be able to referance in my EA the Average daily range calculated in this indicator. From what I've been able to determine the indicator code is lacking the correct code related to indexing buffers, or something like that. well anyway, it would be appreciated if someone could give me some guidance on what code to add, or if it's not too much effort, possibly go ahead and add it for me in the code below. The value in the indicator I want to index is RAvg
Reason: