within function in scan


New member
I am confused by the within part when set up a scan.
Using daily chart as example, suppose current date is Nov 25:
within 1 bar: scan curret date (Nov 25)
within 2 bars: scan the past two days (Nov 25 and Nov 24)
within 3 bars: scan the past three days (Nov 25, Nov 24, and Nov 23)

But when using a negative number, it is not clear to me:
within -2 bars: scan in the future days (Nov 26 and Nov 27)?
But, Nov 26 and 27 data are not there yet. what the meaning to scan on it?
I might miss something here.
Last edited:
In case it's pertinent, I get an error when I try to use a negative and within.