efe_akm

Contraction Levels

efe_akm Updated   
A contraction candle is a candle whose body engulfs both left and right candlesticks' bodies. This indicator shows those contraction candlestick patterns which consists of successive candles. Then draws a horizontal level line to its defined % of its body size and also draws +/- filter lines which are shown as dashed lines, also with an option to define those filters' percentage.

Bullish Contraction:
Whenever a new candle closes above the maximum high of 3 contraction candles pattern, that contraction is called bullish contraction and its lines are shown as green lines ( you can change the color as well)

Bearish Contraction:
Whenever a new candle closes below the maximum low of 3 contraction candles pattern, that contraction is called bearish contraction and its lines are shown as red lines ( you can change the color as well)
Release Notes:
Options to show/hide:
- Contraction Candles
- Center Lines
- Filter Lines
Release Notes:
Colors all 3 contraction candles instead of last candle
Release Notes:
Added Alerts and their options to show/hide for:
- New contraction candle
- New bullish and breakout
- Cross for center line and +/- filter lines
Release Notes:
Fixed a bug in breakout alerts
Release Notes:
Added some details to comments
Release Notes:
Fixed some bug about barstate for contraction bars
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?