Login Page - Create Account

Support Board


Date/Time: Mon, 20 Jan 2025 11:14:20 +0000



Post From: Reference previous range of bars

[2018-06-02 09:18:11]
chart_warrior - Posts: 96
I'm trying to reference previous 6 bars to compare if current delta is higher than the last 6 bars.
It's part of a bigger code but the issue I'm having is specifically with this condition which doesn't return the right value based on looking at the chart:

=ID2.SG4 > OR(ID2.SG4[0:-6])


ID2.SG4 is cumulative delta close

I do not get any errors however by looking at the chart I can see that current delta is lower than any of the last 6 bars and it's still showing a dot.