devxpy

MACD exit % indicator

Introduction

An exit indicator for MACD , good for triggering order exit via MACD .

It works by considering <current MACD hist> and the <max MACD hist after last flip>.

Then, it just exits when the % change in these values surpasses a threshold.


Indicators

blue line - MACD
orange line - Signal

green/red columns - Histogram

aqua background - Last Histogram Flip
fuchsia background - Max abs(Histogram) value after last flip
orange Background - Exit region
Release Notes: comments
Release Notes: Sane defaults for hyperparameters
Release Notes: Fix plot
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?