Category

Indicator Functions

Description

Bollinger band percent (%B)

Syntax

BBPCT(len, mult)

Parameters

len - lookback period

mult - number of standard deviations

Notes

This indicator returns the position of Close relative to the Bollinger bands.

This is equivalent to (Close - BBBOT(len, mult)) / (BBTOP(len, mult) - BBBOT(len, mult)).

The return value is:

>1 if close is above the top band

1 if close equals the top band

0.5 if close equals the moving average

0 if close equals the bottom band

<0 if close is below the bottom band

To calculate BBPCT for something other than Close use BBPctF.

This function supports ultra-fast one-pass calculation when used in the Data Section with a non-variable count.

 

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC