I am just trying to learn how to program in wealth-lab and have written a test program that allows me to try different features of the program. I am trying to create a Bollinger Band envelope based on the high of the day and the greater value of the open or close of the day. I am also doing the same thing with low of the day in reverse. The problem I am having is the BBInnerTop is the same as the Bollinger Band for the close. I have been looking at the code to long and can't see my problem, maybe someone else can spot my error.
CODE:
Please log in to see this code.