Thank you for your response.
Since we're technically running calculations at the open of the bar (with open and close being the same event), we need to shift index values back one value, because the open = close = high = low at the first tick. Shifting the values ensures we are using data from the recently closed bar.
So you were correct, use Close[1] instead or Close[0] for example.
Comment