- Topics: 66
- Replies: 594
- Posts: 660
You can use the WITHINRANGE() function. Here’s an example for 1% on the 20 day BB:
LL1 = BB(BARS=20).LowerLine;
UL1 = BB(BARS=20).UpperLine;
WITHINRANGE(CLOSE(), LL1, PERCENT=1.00) or
WITHINRANGE(CLOSE(), UL1, PERCENT=1.00)
Attached is a workbook that you can download and open which has the areas shaded red for within 1% of the upper line, and green for lower line.
You must be logged in to access attached files.