say if I were using a different input series for my indicator for example the SMA and wanted to access the close value of the currency on the chart how would I do this??
Close[0] doesn't seem to be working and not sure if its my coding or if its just calculating the close of the input series.
sorry if this is a newb question I can't find any threads on this.
EDIT:
my code is along the lines of:
Close[0] - this.Input[0];
I'm not getting any errors however when I try and use my indicator if returns 0. I have included the current bar statement so I don't think there is anything particularly wrong with the code.

Comment