OPEN-SOURCE SCRIPT

MACD Objective Breakouts + Alerts

Updated
Finds the most recent support and resistance level as confirmed by the MACD . These level are detected dynamically and the lines will be updated as new levels form.
Alerts can be toggled on or off in the settings but will not work if the alert is not added to your chart. Alerts can be added by selecting the "Alert" button on TradingView then selecting "MOB Alerts" as the condition
Alerts will trigger when price closes above or below the indicated levels.

Please let me know if you find any bugs!
Release Notes
+ Added shapes: Shapes are now plotted to indicate breakout candlesticks. The first candle that closes outside of a key level is indicated with a diamond.
+ Added additional style options: Can now toggle shapes on or off. Can now change the width of the lines.
+ Added new alert feature: Toggle the "Plot Shapes" checkbox if you only want to be notified on the close first breakout candle. If unchecked, you will be notified on the close of every breakout candle.
Release Notes
~ Fixed bug that stopped alerts from working if the "Alert Once" box was checked
Release Notes

+ Added regular and hidden divergence detection: Will indicate breakouts after a divergence has been detected if toggled on. Divergence breakouts will be indicated with a white diamond on the first candle instead of the usual red/green.
+ Added checkbox to only receive alerts if there is a divergence breakout.
~ Changed some text to make the settings more clear.
Release Notes
.
+ Added "Only On Close Outside of Level" checkbox under "Alert Settings". When enabled, a candle will need to close outside of a key level to receive an alert. When disabled, you will receive an alert as soon as price touches a key level.
+ Added checkbox to enable/disable the lines without needing to go to the "Style" tab.
~ Changed various tooltips to accommodate for new additions.
Release Notes
.
+ Added new setting to confirm the lows/highs based on the number of histogram bars needed to display a high or a low. (ex. Minimum Histogram Bars = 3, you will need at least 3 green MACD histogram bars in a row for the indicator to consider this a new resistance level)
breakoutMoving Average Convergence / Divergence (MACD)Support and Resistance

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer