fxcodebase-backup

Geometric Bollinger Band Indicator

Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=76535
Forum: 17 · Topic 76535 · 1 post(s)


Geometric Bollinger Band Indicator

Steve_W · Sat Feb 07, 2026 7:47 am

This indicator is an enhanced version of the standard Bollinger Band indicator

Example plot of Silver on D1 using settings EMA=9, bands 2.0 and 3.0 std dev, with geometric correction enabled

XAGUSD D1 (02-07-2026 1213).png

XAGUSD D1

gbb.lua

The code was developed using ClaudeAI to reduce work but based on an existing indicator that I published as an input template - so coding style could be carried through as a preference. If people wish to do similar, load the file up into the AI, and then instruct it to use as a template and design your new indicator with the rest of the prompt. ClaudeAI is quite capable but Grok can also make a reasonable effort (more bugs likely). Doing it this way reduces the coding cycle and errors, as it already has the basics to work with.