Originally Posted by zupcon
Your not setting a value for the upperline variable, therefore it defaults to 0, and the bid is always higher than 0.
Hey ZUP thank you very much....your observation was spot on!!
First I made a stupid mistake writing lowerline twice....
But after reading your post I realized that I was actually stating "Bid" as a variable value and as a price reference for my "if" making it a worthless conditional.
I changed the iENVELOPES "Bid" to CLOSE_PRICE and guess what? It works!!
Thanks gain for the help!!