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
更多:

免责声明