Editors' picks
OPEN-SOURCE SCRIPT
Updated

Moving Average Entanglement

19 451
This script uses the gap in moving averages standardized to the average true range to determine entry and exit points.
The red line represents the current percentage of ATR that is deemed "The Dead Zone" - a move that is too small to be reliable.
The histogram represents the gap between moving averages. When the histogram is above the red line, it confirms a breakout move.
The dashed line an be used as a secondary filter and is a moving average of the histogram.
When Standard Deviation mode is on, a third line is displayed, which represents how many standard Deviations the current histogram bar represents, and can be also used as a filter.
Release Notes
added option to color histogram based on bullish/bearish Gap of MAs
Release Notes
Added Alerts
Release Notes
bug fix for alert conditions to only fire on crossovers
Release Notes
Added alerts when the histogram changes color (goes bullish from bearish or vice-versa) after two or more previous bars of the opposite color
Release Notes
added price source as an input parameter
Release Notes
Added alert conditions for Std Deviation/MA crossovers and crossunders

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.