Return value of the Upper Bollinger band technical indicator.
Syntax:
1 |
BollingerUp[N](price) |
Example:
1 2 3 4 5 6 7 8 9 10 |
//last bar piercing the upper Bollinger Bands bollU = BollingerUp[20](close) if(Open[1]<bollU[1] AND Close[1]>bollU[1]) THEN VAR = -1 ELSE VAR = 0 ENDIF RETURN VAR as "UPPER PIERCING SIGNAL" |