> For the complete documentation index, see [llms.txt](https://insilico-research.gitbook.io/insilico-research/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://insilico-research.gitbook.io/insilico-research/bbpct.md).

# BBPCT

<figure><img src="/files/0pTh0YSCyIFPfPNq5y8o" alt=""><figcaption></figcaption></figure>

BBPCT calculates the percentage difference between the current price and historical deviations, helping identify premium and discount zones and signalling mean reversions, cooldowns, and pullbacks. BBPCT is straightforward and traditional, created in response to a friend's request due to a lack of intuitive Bollinger Bands % scripts in the Pine library.

In its initial release, users can choose from six filters for indicator behaviour. BBPCT offers the option to enable basic reversal warnings, coloured bars/candles, or arrow plots. Overbought/oversold levels are adjustable via inputs, with default values set to personal preferences. Further customisation includes changing the sigma and length inputs, as well as altering the data source.

Updated have improved the core logic, distinguish between pullbacks and reversals, enhance reversal recognition, and implement proper colour coding for visual clarity.

Several updates have been made to enhance its functionality. In December 2021, additional improvements were introduced, such as the incorporation of divs and an adaptive mid-level. These enhancements further expanded its utility by adding alerts for level crossings and the option to exclusively utilise pivots above a specified level for divergence filtering. Additionally, a Middle Overbought/Oversold multiplier was included. In late December 2021, div bar colouring was fixed to ensure accurate representation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://insilico-research.gitbook.io/insilico-research/bbpct.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
