PROTECTED SOURCE SCRIPT

Pivot TrendLine with Divergence

20 459
█ OVERVIEW

Automatically draws divergence trends on your charts.

█ CONCEPTS

Key features
 • The script would find all pivot points using built-in functions.
 • Then it would calculate the RSI/MACD level at those pivot bars.
 • At last we're using RSI/MACD divergence as a filter to plot marks on your chart.

█ NOTICE

This script would REPAINT based on the pivot length settings. Indicators are just simple tools to demonstrate price trends, they can not predict trends.

Please keep that in mind.

Use at your own risk.

═════════════════════════════════════════════════════════════════════════

Feel free to leave comments below, this is still an experimental script.

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.