MACD is one of the most consistent ways a trader can determine overall trend direction. In this script, I've simplified the traditional MACD histogram into a compact bar with trend change shapes (▲▼) when the MACD histogram goes under the zero line or above the zero line. With traditional MACD I often have to zoom in, wasting precious time. This indicator fixes that problem.
I use this script as a confirmation for other trigger signals, not as an entry or exit signal. I find this compact widget to be a preferable visualization of MACD on lower timeframes, while high timeframe analysis lends itself to the traditional MACD built-in with more data for decision making. This is also very useful when crafting trading strategies to quickly check for confluence of signals.
In addition to the traditional EMA smoothing that comes with MACD, I exposed a series of common moving average types. These include: SMA, EMA, WMA, RMA, SWMA, VWMA, Hull, TEMA, and ZLEMA. TEMA and ZLEMA are not standard builtins, but when looking for fast confirmation they can be very useful. They can also create LOTS of noise, so consider this wisely before changing the builtin methodology. One neat trick is to pair a "fast" version of this with fast moving average type and then a slow one using traditional EMA.
▲▼ signals = trend shift in direction of triangle
full color "bull or bear" color = strong trend
half color (semi-transparent) "bull or bear" color = weakening trend
版本注释
Quick update based on an idea gmeneguzzo threw out looking at the MACD or the signal line instead of just the histogram. There's a dropdown now (the first input) that will allow you to select which value you want to follow. The updated screenshot paired with this change showcases all 3 options on the chart.
版本注释
Fixed "cannot load" issue due to the timeframe argument and recent TradingView updates
Added alert conditions for bullish and bearish trend reversals