Login Page - Create Account

Support Board


Date/Time: Mon, 23 Jul 2018 07:57:58 +0000



Post From: Offering To The Community: On Balance Volume By Percent Bar With Filters

[2015-07-10 05:07:39]
bjohnson777 (Brett Johnson) - Posts: 224
I've been programming some indicators from my base tool kit and am offering them to the community. I request they be added into the main SC distro once checked over.

From the "Display Study Documentation" button:

On Balance Volume By Percent Bar With Filters. Traditional OBV is calculated by comparing the previuos bar with the current. This creates an offset problem. When watching a live graph, the current price and current volume happen together, not offset by 1. This OBV version fixes that and adds a percent scale. The scale splits the bar based on where close is within the high to low range. A close in the middle does nothing. A close below middle subtracts more from the balance than it adds. A close above middle adds more to the balance than it subtracts. Note that true OBV requires tick by tick data, so if you have it, use it. This algorithm estimates OBV from data by the bar. Like all algorithms of this type, it is not 100% accurate and subject to manipulation by large institutions.

This OBV version has a Volume Filter option to handle cases when a volume spike smashes the indicator making it hard to read. Large institutions sometimes do this to hide their activity afterward. The "Straight" option passes volume data through without any filtering. The "Log" option runs each volume bar through the log function making a type of "log scale". The "Square Root" option runs each volume bar through the square root function making a type of "square root scale". The "MA Clip" option will clip volume above a chosen moving average. The final Smoothing option will apply a moving average to take some of the noise out of the final OBV line.

Observations. The various volume filters are very effective and will walk right through the volume spike bar hardly noticing it. The volume filters also tend to minimize errant graph changes.

When using one of the volume filters, it is necessary to have the first OBV instance running in "Straight" mode. Add the second OBV instance to the same graph with "Independent Scaling". This is important because the filtered bars tend to drift in value with smaller volume bars. While this drift will show the OBV bias direction, it will not do it to scale and may cause false signals. The "Straight" instance will be used to verify actual distance moved. Note that Log tends to drift the most (sometimes offering an early indicator), followed by Square Root and then MA Clip. To learn the movement characteristics of each, put them all on one chart for equal comparison.

Take note when all OBV lines pivot in the same direction. This tends to indicate a change with strength.

-----
Minor update 2016-10-15. No major function changes.
Regular compiles moved to "Brett Johnson's Standard Tool Kit" DLL.
https://www.sierrachart.com/SupportBoard.php?ThreadID=18945
Date Time Of Last Edit: 2016-10-15 06:57:36
attachmentOnBalanceVolumeByPercentBarWithFilters.cpp - Attached On 2016-10-15 06:57:22 UTC - Size: 10.09 KB - 36 views
attachmentOnBalanceVolumeByPercentBarWithFilters.dll - Attached On 2016-10-15 06:57:28 UTC - Size: 83.5 KB - 27 views