OPEN-SOURCE SCRIPT

MACD Bar 1.0 [upslidedown]

已更新
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
Moving Average Convergence / Divergence (MACD)Trend Analysis

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


❤️ Pro indicators whop.com/upslidedown/
💎 Chat with me about indicators and strategies: discord.gg/Psf9PV6Urf
💎 Get my %R Trend Exhaustion indicator: bit.ly/prte
更多:

免責聲明