calebsandfort

Bridge Bands [joecat808]

calebsandfort 已更新   
Bridge Bands are an implementation of the work done by Joe Catanzaro (joecat808) to produce a risk range for a security.

The basic idea is to calculate Mandelbrot's "Bridge Range". (Pg. 179 of Misbehavior of Markets)

It then calculates Bollinger Bands.

Then next step is to calculate the Hurst Exponent.

The last step is to merge the Bridge Range and the Bollinger Bands. The basic concept is if H = .5 we use the Bollinger Bands and the farther away we move from .5 in either direction the Bridge Range takes more precedent.

There is a Trend value that is the mid-point of a 3 month Donchian Channel. If price is above we're bullish, if price is below we're bearish.

Lastly, there is also an option info box with data regarding the underlying's position within the range, as well as an experimental position size calculation.

版本注释:
Added a resolution input parameter
版本注释:
版本注释:
Fixed issue with tickers like US10Y or COPPER where there were huge spikes in the range that would make the chart unreadable.
版本注释:
Added a trade signal plot. It show's as circles. Calculation is the same as the trend plot just on a shorter duration, which is configurable.

Added a yes/no parameter to turn color coding of the info box on.

If on, colors are as follows:
- yellow: bullish, price is top quartile of range, asset does not have one month momentum and volume is decelerating
- pink: bullish, price is bottom quartile of range, asset does have one month momentum and volume is decelerating
- orange: bullish, price is bottom half of range
- green: none of above conditions met
- red: bearish
版本注释:
Change info box orange color code to blue.
版本注释:
Two updates:

1. Added two additional trend signal methods. Existing option is title Donchian. Momentum is simply if the asset has positive price momentum over the lookback period. RSI is if the RSI is greater than the Trend RSI Threshold value. Default threshold is 50.
2. Added a Trend Confirmation Length input parameter. This basically says the trend signal has to be bearish for this many days to signal bearish, otherwise bullish.

Default values for the two new inputs are Donchian and 1 and will cause no change to current behavior.
版本注释:
Added a fourth Trend Signal Method of VixFix. It is basically bullish if the VixFix is below it's Trend line, and bearish if above.

I also made it so the Donchian Trend line will show when using RSI of VixFix for the Trend Signal Method, just for a point of reference. If this causes confusion, you should be able to hide Trend plot in the appearance settings of the indicator.
版本注释:
Converted info box into table anchored in the top right corner. Much easier to see various color-coded metrics.

Added marker plots for HHs, HLs, etc over in the range over a specified lookback period

Added input parameters for bullish, bearish and text colors
版本注释:
Added optional plots to show the bridge range and bollinger bands that the bridge bands are created from
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?