OPEN-SOURCE SCRIPT

Contraction Levels

已更新
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)
版本注释
Options to show/hide:
- Contraction Candles
- Center Lines
- Filter Lines
版本注释
Colors all 3 contraction candles instead of last candle
版本注释
Added Alerts and their options to show/hide for:
- New contraction candle
- New bullish and breakout
- Cross for center line and +/- filter lines
版本注释
Fixed a bug in breakout alerts
版本注释
Added some details to comments
版本注释
Fixed some bug about barstate for contraction bars
contractionPivot points and levels

开源脚本

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

想在图表上使用此脚本?

免责声明