Obtaining $ amounts for Bollinger Band position
Author: dag
Creation Date: 1/26/2009 2:04 PM
profile picture

dag

#1
I would like to compare the $ amount of the lower Bollinger Band of the last bar to five bars ago to see if it is <= $5 difference. I've tried several 'guesses' but they didn't work.

Thanks in advance.
profile picture

Cone

#2
Here you go - although I'm guessing that you really want >=, since the "normal" condition would be for the difference to be <= 5.
CODE:
Please log in to see this code.
profile picture

dag

#3
Wow, I do not understand the following:

CODE:
Please log in to see this code.


Would there be another way to get the bbL[bar] variable?

Also, I've been coding with WLP 4 and understand that somewhat better.

profile picture

Eugene

#4
QUOTE:
Would there be another way to get the bbL[bar] variable?

You can AnnotateBar, or AnnotateChart, or DrawText, or even get a Windows Form messagebox displaying your variable.
profile picture

Cone

#5
... or just hover the cursor over the BBand in the chart.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).