RealTest User Guide
RealTest User Guide

 

 

 

 

 

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 one-pass calculation when used in the Data Section with a non-variable count.

 

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC