PROTECTED SOURCE SCRIPT

Composite Trend Indicators

52
Trend recognition: Based on ZigZag (depth/deviation/backtracking adjustable) annotation HH/HL/LH/LL, draw high and low point lines and labels, and selectable up/down trend coloring and BOS dot hints.
Moving average group: Optional display of 21/55/89/200 EMA, distinguished by different colors.
Support and Resistance: The second segment ZigZag generates horizontal lines or boxes, which can be extended and have quantity limits; diagonal lines and SR lines can be drawn, and labeled HH/HL/LH/LL.
Trend bar: Adaptive moving average (based on efficiency ratio), coloring the K-line to show short-term bullish and bearish momentum.
Divergence Detection: Finds regular/hidden divergences for multiple indicators such as MACD/Hist/RSI/CCI/MOM/OBV/VWMACD/CMF/MFI, draws lines, and can display indicator abbreviations/counts.

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.