OPEN-SOURCE SCRIPT
Updated

MACD exit % indicator

16020
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

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.