Forum

Unexplained incorrect data and non-advancing numbers

I've racked my brain around this stuff. Looked at the book, watched videos and dove into forums with no luck. the code is in mql4. I'm trying to use iCustom with quite a few hiccups. I'm still new to coding in mql4 but i can't seem to find answers to my issues anywhere. The red boxes have

Trying to shift the given information of an indicator by the previous bar for an EA

I'm building an EA for a strategy that uses information of an indicator from the close of the previous bar. Not the close price but the information that the indicator gave at the close. I tried looking at iBarShift but that gives the bar's info. Bars and iBars is no help either. In the attached