Support Board
Date/Time: Wed, 30 Apr 2025 10:49:58 +0000
Bollinger Bands restart calc at session open
View Count: 68
[2025-04-16 13:44:00] |
User512353 - Posts: 65 |
When using the Bollinger Bands study, when the chart is set to display only the RTH session, there usually is a large gap between the last bar of the previous session and the first bar of the current session. This causes the Bollinger Bands study to display a huge spike. Is there any way to force the Bollinger Bands study to simply restart the calculation at the beginning of a RTH session, ignoring any previous session, and thereby avoiding the typical spike at session start? |
[2025-04-16 17:55:56] |
John - SC Support - Posts: 39559 |
The Bollinger Bands is not setup to "start" at a particular time. It uses a Length Input to determine how far back to get the data. Therefore, what you are seeing is how this is going to work. You could modify the code for the study to not calculate until the number of bars is met at the start of the day. The source code is in the Studies3.cpp file. Refer to the following: How to Build an Advanced Custom Study from Source Code https://www.sierrachart.com/index.php?page=doc/SierraChartStudyAndSystemProgrammers.php For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: