Skip to main content

Why does close[-1] not work?

History offsets must be zero or positive, so close[1] is the previous bar. A negative offset would look into the future and is rejected rather than returning na.