OPEN-SOURCE SCRIPT

H/L Price Band with Signal Line (PBS)

Updated
This indicator centers a moving average around the hl2 of the price. This is calculated as the difference of two moving averages. The upper band is a 9 period exponential moving average, the lower band is a 7 period moving average and the center line is the average between the two. The "Fast Line" is our signal line in this oscillator. When the price is hovering around the center of the band this indicates that a trend is pausing or reversing. When the fast line exits the band this could be a buy or sell signal. It could also indicate a very strong trend in that direction. To get the optimal entry and exit you might want to wait for the price to return to the center line. In addition to the basic functionality of this indicator I have added some bonus features. You can enable the "Slow Line" or the "Long Line" to enhance your signals. When the fast line is above the slow/long line you are in an up trend and inversely when the fast line is below the slow/long line you are in a down trend. The crossing of these lines can indicate a reversal. I have also included a "J" style amplification line. This works by enhancing the difference between the Fast and Slow/Long line to make it more visually apparent. You can also configure the "J" line to be calculated between either the slow or long line. Finally I have added the feature to amplify the band width by the standard deviation. This is set to 1 by default but you can also get a more responsive signal by setting this to 0.
This indicator works in most markets. There is a tool tip for every aspect of this indicator explaining how everything works. I hope you are very profitable with this one!
If you find this indicator is useful to you, Star it, Follow, Donate, Like and Share.
Your support is a highly motivation for me.

Release Notes
Fixed the default stdev
Release Notes
Changed a default background colour to make things more visible when using both backgrounds.
Release Notes
Updated tool tip...
Release Notes
ease of use fix
Release Notes
Update default
Release Notes
minor fix
Release Notes
Minor tool tip fix
Release Notes
Fixed the "J" line colour.
Release Notes
Updated tool tips.
Release Notes
Fresh refactor. Let me know if you want any of the old feature back. I added normalization and a convergence divergence histogram. I removed the background colors and the ability to change the sources. Lead and Lag line are HL2, high line is High and low line is Low. It still works the same as always.

To recap the function, this indicator lets you see where the live price is relative to the average high and low. You can also multiply the band by a standard deviation to give you a real time Bollinger band oscillator that uses the average high and low instead of the mean.

Enjoy and let me know if you want any features back.
Release Notes
I also removed the extra lsma line.
Release Notes
TransitMan suggested this feature.

Added pivots
Release Notes
quick fix like usual
kdjLeast Squares Moving Average (LSMA)macrossOscillatorsTriple Exponential Moving Average (TEMA)Trend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer