OPEN-SOURCE SCRIPT
Updated Barbwire

This indicator looks for where market momentum is waning.
It uses Heikin-Ahi for that.
Heikin-Ashi averages the Open and Close prices, so the entity is not compressed as often as candles.
Using this characteristic, the continued compression of the entity is indicated as a decline in the market.
Settings:
Period - The degree of compression is calculated as a stochastic-like percentage. Specify the period to be used for the calculation.
Level(%) - If it is smaller than this number, it is assumed to be compressed.
Minimum period - The agreement shall be valid if it has been continued for at least this period.
It uses Heikin-Ahi for that.
Heikin-Ashi averages the Open and Close prices, so the entity is not compressed as often as candles.
Using this characteristic, the continued compression of the entity is indicated as a decline in the market.
Settings:
Period - The degree of compression is calculated as a stochastic-like percentage. Specify the period to be used for the calculation.
Level(%) - If it is smaller than this number, it is assumed to be compressed.
Minimum period - The agreement shall be valid if it has been continued for at least this period.
Release Notes
Added an option "Box extend"Release Notes
The calculation method has been changed.In addition to the calculation using Stochastic, the ranking method is used to calculate and synthesize the results.
- Added an option 'Smallest bar'
- Added an option 'Largest bar'
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.