How to Use the MACD Indicator?How to Use the MACD Indicator?
🔶 What’s MACD?
That is an abbreviation for Moving Average Convergence Divergence.
This technical indicator is a tool for identifying moving averages that indicate a new trend, whether bullish or bearish.
After all, finding a trend is a key priority in trading because that’s where the greatest money is produced.
A MACD chart typically displays three figures that serve as its settings.
▪️ The first parameter is the number of periods utilized to construct the faster-moving average.
▪️ The second factor is the amount of periods used in the slower moving average.
▪️ The third parameter is the number of bars utilized to construct the moving average of the difference between the faster and slower moving averages.
For example, if you saw "12, 26, 9" as the MACD parameters (which is typically the default value for most charting software), you would read it as follows:
🔹 The number 12 signifies a 12-bar moving average.
🔹 The number 26 denotes the moving average of the preceding 26 bars.
🔹 The 9 is a moving average of the difference between the two moving averages mentioned above.
When it comes to the MACD lines, there is a widespread misperception.
There are two lines:
🔺"MACD Line"
🔻"Signal Line"
The two lines that have been drawn are NOT price moving averages.
The MACD Line is the difference (or separation) of two moving averages. Typically, these two moving averages are exponential moving averages (EMAs).
The MACD Line is the "faster" moving average when looking at the indicator.
The MACD Line in our previous example is the difference between the 12- and 26-period moving averages.
The MACD Line's moving average is the Signal Line.
When viewing the indication, the Signal Line is the "slower" moving average.
The slower moving average plots the previous MACD Line's average. Again, in our previous example, this would be a 9-period moving average.
By default, most charts employ a 9-period exponential moving average (EMA).
This indicates that we are plotting the average of the last 9 periods of the "faster" MACD Line as our "slower" moving average.
The Signal Line's aim is to mellow down the sensitivity of the MACD Line.
The difference between the MACD Line and the Signal Line is represented in the Histogram.
It depicts the distance between the two lines graphically.
It may occasionally offer you an early warning that a crossover is going to occur.
When we look at our original chart, we can see that the histogram grows as the two moving averages (MACD Line and Signal Line) separate.
The faster moving average (MACD Line) is "diverging" or moving away from the slower moving average (Signal Line), resulting in a MACD divergence.
The histogram shrinks as the moving averages move closer together. Because the faster moving average (MACD Line) is "converging" or approaching the slower moving average (Signal Line), this is referred to as convergence .
That is how you get the name Moving Average Convergence Divergence.
So now you are aware of what MACD performs. Let us now demonstrate what MACD can achieve for YOU.
🔸 MACD Trading Guide
Given that there are two moving averages with differing "speeds," it stands to reason that the faster one will respond to changes in price more quickly than the slower one.
The faster line (MACD Line), which reacts first to a new trend, finally crosses the slower line (Signal Line).
It frequently signifies the emergence of a new trend when this "crossover" takes place and the fast line begins to "diverge" or move away from the slower line.
The fast line passed UNDER the slow line in the previous chart, correctly identifying a new downtrend.
You'll see that the Histogram briefly vanished when the lines intersected.
This is due to the fact that there is no difference between the lines at the moment of the cross.
The histogram increases as the downtrend takes hold and the fast line begins to diverge from the slow line, which is a sign of a strong trend.
Let's look at an illustration.
The fast line passed over the slow line in the above 1-d chart of BTC/USD, and the histogram vanished. This implied that the brief downward trend might eventually turn around.
After that, the BTC/USD launched a new upswing and immediately shot up.
🔴 BUT The MACD has one disadvantage.
Moving averages naturally lag behind price. It's only an average of past prices, after all.
Keep in mind that the MACD indicator has three parts:
🔹The MACD Line which represents the difference between two moving averages.
🔹The Signal Line which is a moving average of the MACD Line.
🔹The Histogram which is a graphical representation of the distance between the MACD Line and Signal Line.
However, MACD is still one of the favorite tools of many traders and mine, of course )
If you liked the post and it was useful to you - click <>, let newcomers see! Leave your comments, I'll be so pleased!
Sincerely yours Kateryna
Macdcross
ZEUS Bullish MACD Setup - High Accuracy of Winning TradesOur MACD Setup is created to reveal winning entry points for a trade with high accuracy.
In our MACD Setup we combine multiple conditions to recognize only strong entry points.
Multiple factors need to be met in confluence:
1. Recognize the Trend = Bullish / Bearish Trend (50 EMA is Above / Below 200 EMA)
2. There is a MACD Cross = Bullish / Bearish MACD Cross (MACD Cross is Below / Above Zero Horizontal Line)
3. Avoid False Signals in a Sideways Markets = MACD Cross far from horizontal zero “0” line
4. Filter only Strong Trend Situations = Candle Close above/below 200 EMA
5. Avoid Extreme Values in RSI = check if there is way to go before we get oversold/overbought
6. Our Algorithm Filters Signals in Side Trend and Low Volume Markets
Let´s explain the conditions step by step
1. Recognize the Trend
Exponential Moving Average (EMA) is one of the most effective trend identification indicator. Traders like it because of it its simplicity.
EMA is usually used in combination between 200 days (as a slow indicator) and 50 days (as fast indicator of the trend).
Bullish Trend = EMA 50 is Above EMA 200
Bearish Trend = EMA 50 is Below EMA 200
2. There is a MACD Cross
After we recognized the Trend (Bullish Trend in our case) we would like to trade with the trend so we are looking for Bullish MACD Cross.
Bullish MACD Cross is Below Zero Horizontal Line
3. Avoid False Signals in a Sideways Markets
So we found Bullish MACD Cross and now we want to be sure that the Cross far away from the Zero Horizontal Line.
Our algorithm filters crosses and shows only signals with decent distance form Zero Horizontal Line.
4. Filter only Strong Trend Situations
Once we have met the first three criteria (Bullish Trend and Bullish MACD Cross far from Zero Horizontal Line) we need confirmation that the market is still strong and is moving forward in an uptrend.
So we look at price action and there need to be Candle Close Above EMA 200 . Closing about EMA 200 indicates continuation of the trend.
5. Avoid Extreme Values in RSI
The other condition is based on RSI and we are looking only for situations where RSI is not overheated so there is a way for trend continuations.
In our case RSI was in the middle values so we can expect market to continue its uptrend.
6. Our Algorithm Filters Signals in Side Trend and Low Volume Markets
We have developed our own Algorithm which filters signals in low volume markets and side trend.
MACD: Everything You Need To Know!The MACD indicator consists of three parts: the MACD line, the signal line, and the histogram. The MACD line is calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA. The signal line is a 9-period EMA of the MACD line, and the histogram represents the difference between the MACD line and the signal line.
Let's break this down a little further. The MACD line is a measure of the difference between the 12-period and 26-period EMAs. When the 12-period EMA is above the 26-period EMA, the MACD line will be positive. When the 12-period EMA is below the 26-period EMA, the MACD line will be negative.
When the MACD line crosses above the signal line, it's considered a bullish signal. This indicates that the trend is likely to continue upward. Conversely, when the MACD line crosses below the signal line, it's considered a bearish signal, indicating that the trend is likely to continue downward.
One of the most popular ways to use the MACD indicator is by looking for crossovers between the MACD line and the signal line. When the MACD line crosses above the signal line, it's considered a bullish signal, indicating that the trend is likely to continue upward. Conversely, when the MACD line crosses below the signal line, it's considered a bearish signal, indicating that the trend is likely to continue downward.
But using MACD isn't just about looking for crossovers. There are several other ways to use the indicator to make informed trading decisions. For example, you can use the MACD histogram to identify divergences between price and the MACD indicator, which can signal a potential trend reversal.
Stochastic + RSI + MACD zero cross strategy from backtest on SPYStrategy
1. Stochastic cross at 50 level
2. RSI cross at 50 level
3. MACD cross at 0 level
4. Engulfing Candlestick?
5. Level 2 Tape sentiment balance (Optional)
Technical Analysis
It's a simple technical analysis setup strategy for bullish or bearish trading setup in both bullish and bearish sentiment scenarios. All levels in the indicators are at standard default settings.
Step One:
Look at the Stochastic indicator cross at 50 level and a cross over the signal line. This will be the first check and we want the cross to occur at the 50 level.
Step Two:
Check the RSI and need a cross at 50 level. This is the second confirmation.
Step Three:
Check the MACD cross and it's best to wait for the cross to happen at the zero line. This has a lower instances from occurring but it helps to avoid fake-outs that MACD is prone to showing.
Step Four:
Look for an engulfing candlestick pattern in the chart for a final confirmation.
Step Five (Optional):
If you have access to Level II quotes and the Time&Sales, watch for a momentum into the Ask side for a bullish sentiment or the Bid side for a bearish sentiment. Also you'll need to be familiar with tape reading on the volume and speed for better entry or exit.
HOW TO SWING TRADE USING BB - MACD!Today im going to show you how to use Bolinger Bands and MACD together to understand where the price is going.
So you can swing trade easily.
By the way swing trade is holding assets for profit for more than a day.
So this strategy is suitable for novice investors. But you will need practice before applying this to your trading strategy!
First of all i do not recommend betting against the market.
Do follow the trend when using this strategy. If the trend is upwards do not short the asset.
But there can be breakout from the existing trend.
Therefore we can also use trendlines to have better understanding of the market.
Lets identify indicators that we are going to use then i will explain how to use them to swing trade.
MACD measure specific EMAs and their relations. EMAs are mainly 12 period EMA and 26 period EMA.
There are 2 lines and 1 histogram on MACD. They are called, MACD line, Signal line, Histogram.
MACD line = 12 EMA - 26 EMA
Signal line = 9 EMA of MACD line
Histogram = Difference between MACD line and Signal line
We use MACD to identify trends so we can trade accordingly.
If the MACD line is above 0, we are in a uptrend.
If the MACD line is below 0, we are in a downtrend.
If the MACD line is above or crosses above signal line it is a buy signal.
If the MACD line is below or crosses below signal line it is a sell signal.
Longer histograms and being too far away from zero line means momentum of the trend is high.
These are the basic of MACD.
Bolinger Band is easier to grasp than MACD.
There is an upper channel and lower channel calculated with volatility and 2 Standard Deviations from 20 Simple of MA line.
Generally if the price is closer to the upper band, market is considered overbought and vice versa.
If the market is highly volatile bands widen and if volatility is low bands contract.
The most important thing about BB is 20MA. Generally price will test 20MA line after it hits the upper or lower band.
If price breakout or rejceted from it, trend is established.
So how can we combine both of them to swing trade successfully?
1- We have to identify the market trend. We can simply draw a trendline on the chart to identify it.
2- Use 20 MA as entry-exit
3- Look MACD histogram for momentum
4- Use lower - higher band as SL-TP
Example;
Look at the chart on the left!
Feb 04 19, uptrend started and MACD signal buy.
But there is no momentum.
MACD far away from zero line and price far away from 20MA.
Wait until price breakout from 20MA.
1- is the confirmation of trend with momentum rising and price breakout above 20MA line. BB start to widen meaning high volatility.
You can enter long trade here since price and momentum rising with volatility.
2- is the upper band of BB. This is take profit levels.
If you are seasoned enough you can open short position here with 20MA area TP.
3- Test of 20MA. You can enter short or long here with lower BB being SL - TP.
But with MACD signaling sell and losing positive momentum in histogram, short seems to be the RIGHT CHOICE .
4-Price cant hold 20MA. Drop to the lower band. SL-TP zone.
If you are seasoned enough, potential entry zone for long trade. TP being with 20 MA zone.
Lets take a look at the chart on the right.
Same chart, after a couple of weeks from chart 1.
There is a clear uptrend that started 09 March 20.
1- At 20 April MACD signal buy but there is no momentum and price was still below MA20.
It is logical to wait for confirmation which is the breakout of MA20.
2-Price breakout MA20 after a week.
Between 27 April - 05 Oct, there are more than couple times that market offers good entry zones.
Between this time, MACD momentum and lines are rising to the positive-buy zone.
3- Price is around upper band for a long time. Could be a TP zone.
Price also lost %25 value 2 in weeks. Some people use here as TP zone.
But MACD lines and histogram were positive.
Price didnt test the 20MA.
Also BB is still widening. Meaning high volatility in a bull market.
Opening short is not logical here.
4- Last time price touched the upper band.
Histogram started to lose momentum.
Potential TP zone and short entry.
To be honest this seems to be a good point for short trade but didnt work out.
Price went up (2. ATH) couple of weeks later with MACD momentum nearly finished.
Therefore always put SL-TP with your orders.
5- MACD signaling sell.
Low negative momentum.
If open short here, it could be like NO.3 on the chart.
Wait for confirmation.
6- Price test MA20.
After couple of weeks we broke down MA20. Bear confirmed.
Momentum rapidly increase to the negative zone.
Potential short entry.
7-Price cant hold MA20.
Lower BB reached.
Possible SL-TP area.
So sign from MACD to enter a long trade just yet.
8- Possible long entry with MA20 breakout above.
MACD signal buy with low momentum. Therefore wait for confirmation is logical.
After a week momentum rises.
Long entry seems logical.
New ATH for BTC.
So in short,
Identify a trend!
Check MACD for momentum and trend strength.
Enter when price breakout MA20.
Confirm the breakout before enter!
TP-SL at the MA20 and Band limits.
The MACD explained ! All you need to know about it Hello everyone, as we all know the market action discounts everything :)
_________________________________Make sure to Like and Follow if you like the idea_________________________________
In this video, I am gonna explain what is the MACD and how to use it and how to identify buy and sell signals using this indicator.
So what is the MACD, The MACD is a trend-following momentum indicator (so a momentum indicator is a technical analysis tool that allows us to determine the strength or weakness of a stock's price movement )
There are a lot of people that use the MACD when they analyze charts because it's very simple and it's very good but I always say never just use 1 indicator to analyze a chart, always try to use at least 3 this way u can make sure that the result is more accurate and the market most likely to move as u analyzed.
let's look at the theory behind the MACD before looking at a real-life example and how to identify buy and sell signals using this indicator :
The typical settings for the MACD are 12 26 and 9.
The MACD consist of 4 parts :
1) Zero line
2) MACD line
3) Signal line
4) Histogram
We start off with our zero line and this is where the MACD line and the signal line move around and basically so if the MACD is trading above the 0 line then it's bullish and if it's under then it's bearish.
Then we have the MACD line and it comes from the 12 26 section, and it gets calculated by subtracting the 26 EMA of the price out of the 12 day EMA of the price.
And after that we have a second line that gets plotted from the 9 section so basically, it’s a moving average for the MACD line so it tries to smooth the MACD line and give us some signals and it's called the signal line.(it's called a signal line because that's where we get our buy and sell signals from)
So on top of that, we have another part in this indicator which is called the histogram. So this histogram job is to show how close these lines will crossover, so when the distance between the MACD line and the signal line is far the histogram gets bigger and bigger.
So how do we use this indicator :
1) Crossovers between the MACD line and the Signal line.
* When the MACD line crosses above the Signal line then its a buy signal (Bullish Crossover)
* When the MACD line crosses below the Signal line then its a sell signal (Bearish Crossover)
2) The Histogram .
A lot of people use histograms as a way to predict when a reversal will occur.
We know that the MACD is a momentum indicator so it can show us when sell pressure is low. And that means it might be a good time to buy. And It can tell you when your long position is about to run out of steam and when you should exit.
3) Divergences between the MACD and the Market Price .
A Divergence means that the indicator is not moving in sync with the Market Price and a Reversal could happen (Note that Reversal trading is risky so please calculate your risks before using this Strategy)
always remember that :
Bullish divergence is when the Market price is going down but the MACD is going up.
Bearish divergence is when the Market Price is going up but the MACD is going down.
I hope I’ve made the MACD easy for you to understand and please ask if you have any questions .
Hit that like if you found this helpful and check out my other video about the Moving Average, Stochastic oscillator, The Dow Jones Theory, How To Trade Breakouts and The RSI. links will be bellow
Using the Moving Average Convergence Divergence (MACD)MACD – What it is
The Moving Average Convergence Divergence (MACD) is the momentum indicator that shows the relationship between two different moving averages:
1. The 12 period exponential moving average – On Tradingview it is the Fast Length.
2. The 26 periods exponential moving average –On Tradingview it is the Slow Length.
The MACD line is calculated by subtracting the 26 period EMA from the 12 period EMA.
The Signal line is the 9 period exponential moving average.
These two lines are then plotted on top of each other. These are the two lines you see when you turn on the MACD indicator.
Additionally, there is a histogram that shows the distance between the two lines. Larger bars tell us that the MACD and Signal are further apart.
When it comes to candles, size matters. The larger the candle the more momentum the trend has.
The histogram will turn green when the MACD line is above 0 (bullish) and it will turn red when the MACD line is below 0 (bearish).
Very bearish momentum is shown above. Photo was taken May 23, 2021.
How to use the MACD
The most important thing to know about the MACD is how to read the relationship between the two lines.
I’ve found that the best timeframe to use the MACD with is daily. This is because the MACD is a lagging indicator and using daily data prevents a lot (not all) of false buy and sell signals.
These signals are:
• When the MACD line crosses above the signal line it is a buy signal
• When the MACD line crosses below the signal line it is a sell signal
Additionally, it is best to use the MACD in a trending market; a market with a clearly defined up or down trend.
Using the MACD with trend lines is a very powerful combination.
The reason for this is that if the market is moving sideways, you can see small fluctuations where the MACD and Signal Line cross but the price does not really go anywhere. These are false breakouts.
Therefore, these signals are not automatic buys and sells.
There are ways of confirming the indications from the MACD chart.
One way is a strategy that uses the RSI and MACD together (which is beyond the scope of this text, but I will discuss in my next article).
Another way is to use the MACD with the current trend. So, if you are in an uptrend and then you see a bullish cross, then this is confirmation that you are likely to go higher.
The same is true in reverse.
Also, please note that the cross over happens well after the price either stabilizes or rises. Again, this is because the MACD is a lagging indicator.
Leading Indicator?
Since the MACD and Signal lines are lagging indicators is there something that can be used in a predictive way?
Some traders use the histogram as a way to predict when a reversal will occur.
Since the MACD is a momentum indicator it can show us when sell pressure is alleviating. Meaning it might be a good time to buy.
This doesn’t always work of course, but with good risk management (stop losses) you can often get into a position well before its breakout.
Conversely, it can show you when your long position is running out of steam and can warn you when to get out.
MACD Divergence
Another useful way to use the MACD is to spot divergences.
A bullish divergence, very similar to the RSI, is when the short-term price trend is going down but, the MACD is going up.
Bearish divergence, also very similar to the RSI, is when the price trend is going up but, the MACD is going down.
Trading this way is sometimes not a good idea because you are trading against the trend. Please practice good risk management if you are trading reversals.
Also, notice the buy signal right before the sell signal that is circled. I really want to hammer home the point that the signals are not automatic buys and sells.
Price action is a great way to confirm the reversal (to the up or down side) of a trend. Because simply spotting a divergence does not guarantee the price will follow.
Final thoughts
As you can see there are different ways of successfully using the MACD. I hope I’ve made a few of these ways clear in this beginner guide.
Please let me know if you have any questions and if you like it, please hit the thumbs up and be sure to follow for more.
Links to my Fibonacci Retracement and RSI guides are below.
Thanks for reading!
How To Understand And Trade With The MACDWelcome Traders!
In today's trading episode, you will learn what the MACD is and how to use it to find trade setups. No indicator can predict market moves perfectly, but this is a good indicator to have in your arsenal when you trade.
Take time to practice what you learned in today's video.
Until next time, have fun, and trade confident :)
Evolution of MACDMoving Average Convergence Divergence – MACD
The most popular indicator used in technical analysis, the moving average convergence divergence (MACD), created by Gerald Appel. MACD is a trend-following momentum indicator, designed to reveal changes in the strength, direction, momentum, and duration of a trend in a financial instrument’s price
Historical evolution of MACD,
- Gerald Appel created the MACD line,
- Thomas Aspray added the histogram feature to MACD
- Giorgos E. Siligardos created a leader of MACD
MACD employs two Moving Averages of varying lengths (which are lagging indicators) to identify trend direction and duration. Then, MACD takes the difference in values between those two Moving Averages (MACD Line) and an EMA of those Moving Averages (Signal Line) and plots that difference between the two lines as a histogram which oscillates above and below a center Zero Line. The histogram is used as a good indication of a security's momentum.
Mathematically expressed as;
macd = ma(source, fast_length) – ma(source, slow_length)
signal = ma(macd, signal_length)
histogram = macd – signal
where exponential moving average (ema) is in common use as a moving average (ma)
fast_length = 12
slow_length = 26
signal_length = 9
The MACD indicator is typically good for identifying three types of basic signals;
Signal Line Crossovers
A Signal Line Crossover is the most common signal produced by the MACD. On the occasions where the MACD Line crosses above or below the Signal Line, that can signify a potentially strong move. The standard interpretation of such an event is a recommendation to buy if the MACD line crosses up through the Signal Line (a "bullish" crossover), or to sell if it crosses down through the Signal Line (a "bearish" crossover). These events are taken as indications that the trend in the financial instrument is about to accelerate in the direction of the crossover.
Zero Line Crossovers
Zero Line Crossovers occur when the MACD Line crossed the Zero Line and either becomes positive (above 0) or negative (below 0). A change from positive to negative MACD is interpreted as "bearish", and from negative to positive as "bullish". Zero crossovers provide evidence of a change in the direction of a trend but less confirmation of its momentum than a signal line crossover
Divergence
Divergence is another signal created by the MACD. Simply, divergence occurs when the MACD and actual price are not in agreement. A "positive divergence" or "bullish divergence" occurs when the price makes a new low but the MACD does not confirm with a new low of its own. A "negative divergence" or "bearish divergence" occurs when the price makes a new high but the MACD does not confirm with a new high of its own. A divergence with respect to price may occur on the MACD line and/or the MACD Histogram
Moving Average Crossovers , another hidden signal that MACD Indicator identifies
Many traders will watch for a short-term moving average to cross above a longer-term moving average and use this to signal increasing upward momentum. This bullish crossover suggests that the price has recently been rising at a faster rate than it has in the past, so it is a common technical buy sign. Conversely, a short-term moving average crossing below a longer-term average is used to illustrate that the asset's price has been moving downward at a faster rate and that it may be a good time to sell.
Moving Average Crossovers in reality is Zero Line Crossovers, the value of the MACD indicator is equal to zero each time the two moving averages cross over each other. For easy interpretation by trades, Zero Line Crossovers are simply described as positive or negative MACD
False signals
Like any forecasting algorithm, the MACD can generate false signals. A false positive, for example, would be a bullish crossover followed by a sudden decline in a financial instrument. A false negative would be a situation where there is bearish crossover, yet the financial instrument accelerated suddenly upwards
What is “MACD-X” and Why it is “More Than MACD”
In its simples form, MACD-X implements variety of different calculation techniques applied to obtain MACD Line, ability to use of variety of different sources, including Volume related sources, and can be plotted along with MACD in the same window and all those features are available and presented within a single indicator, MACD-X
Different calculation techniques lead to different values for MACD Line, as will further discuss below, and as a consequence the signal line and the histogram values will differentiate accordingly. Mathematical calculation of both signal line and the histogram remain the same.
Main features of MACD-X ;
1- Introduces different proven techniques applied on MACD calculation, such as MACD-Histogram, MACD-Leader and MACD-Source, besides the traditional MACD (MACD-TRADITIONAL)
• MACD-Traditional, by Gerald Appel
It is the MACD that we know, stated as traditional just to avoid confusion with other techniques used with this study
• MACD-Histogram, by Thomas Aspray
The MACD-Histogram measures the distance between MACD and its signal line (the 9-day EMA of MACD). Aspray developed the MACD-Histogram to anticipate signal line crossovers in MACD. Because MACD uses moving averages and moving averages lag price, signal line crossovers can come late and affect the reward-to-risk ratio of a trade. Bullish or bearish divergences in the MACD-Histogram can alert chartists to an imminent signal line crossover in MACD
The MACD-Histogram represents the difference between MACD and its 9-day EMA, the signal line. Mathematically,
macdx = macd - ma(macd, signal_length)
Aspray's contribution served as a way to anticipate (and therefore cut down on lag) possible MACD crossovers which are a fundamental part of the indicator.
Here come a question, what if repeat the same calculations once more (macdh2 = macdh - ma(macdh, signal_length), will it be even better, this question will remain to be tested
• MACD-Leader, by Giorgos E. Siligardos, PhD
MACD Leader has the ability to lead MACD at critical situations. Almost all smoothing methods encounter in technical analysis are based on a relative-weighted sum of past prices, and the Leader is no exception. The concealed weights of MACD Leader are such that more relative weight is used in the more recent prices than the respective weights used by the components of MACD. In effect, the Leader expresses more changes in average price dynamics for the recent price movement than MACD, thus eventually leading MACD, especially when significant trend changes are about to take place.
Siligardos creates two less-laggard moving averages indicators in its formula using the same periods as follows
Indicator1 = ma(source, fast_length) + ma(source - ma(source, fast_length), fast_length)
Indicator2 = ma(source, slow_length) + ma(source - ma(source, slow_length), slow_length)
and then take the difference:
Indicator1 - Indicator2
The result is a new MACD Leader indicator
macdx = macd + ma(source - fast_ma, fast_length) - ma(source - slow_ma, slow_length)
• MACD-Source, a custom experimental interpretation of mine,
MACD Source, presents an application of MACD that evaluates Source/MA Ratio, relatively with less lag, as a basis for MACD Line, also can be expressed as source convergence/divergence to its moving average. Among the various techniques for removing the lag between price and moving average (MA) of the price, one in particular stands out: the addition to the moving average of a portion of the difference between the price and MA. MACD Source, is based on signal length mean of the difference between Source and average value of shot length and long length moving average of the source (Source/MA Ratio), where the source is actual value and hence no lag and relatively less lag with the average value of moving average of the source . Mathematically expressed as,
macdx = ma(source - avg( ma(source, fast_length), ma(source, slow_length) ), signal_length)
MACD Source provides relatively early crossovers comparing to MACD and better momentum direction indications, assuming the lengths are set to same values
For further details, you are invited to check the following two studies, where the first seeds were sown of the MACD-Source idea
Price Distance to its Moving Averages study, adapts the idea of “Prices high above the moving average (MA) or low below it are likely to be remedied in the future by a reverse price movement", presented in an article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management
First MACD like interpretation comes with the second study named as “P-MACD”, where P stands for price, P-MACD study attempts to display relationship between Price and its 20 and 200-period moving average. Calculations with P-MACD were based on price distance (convergence/divergence) to its 200-period moving average, and moving average convergence/divergence of 20-period moving average to 200-period moving average of price.
Now as explained above, MACD Source is a one adapted with traditional MACD, where Source stands for Price, Volume Indicator etc, any source applicable with MACD concept
2- Allows usage of variety of different sources, including Volume related indicators
The most common usage of Source for MACD calculation is close value of the financial instruments price. As an experimental approach, this study will allow source to be selected as one of the following series;
• Current Close Price (close)
• Average of High, Low, and Close Price (hlc3)
• On Balance Volume (obv)
• Accumulation Distribution (accdist)
• Price Volume Trend (pvt)
Where,
-Current Close Price and Average of High, Low, and Close Price are price actions of the financial instrument
-Accumulation Distribution is a volume based indicator designed to measure underlying supply and demand
-On Balance Volume (OBV), is a momentum indicator that measures positive and negative volume flow
-Price Volume Trend (PVT) is a momentum based indicator used to measure money flow
3- Can be plotted along with MACD in the same window using the same scaling
Default setting of MACD-X will display MACD-Source with Current Close Price as a source and traditional MACD can be plotted eighter as a companion of MACD-X or can be selected to be plotted alone.
Applying both will add ability to compare, or use as a confirmation of one other
In case, traditional MACD Is plotted along with MACD-X to avoid misinterpreting, the lines plotted, the area between MACD-X Line and Signal-X Line is highlighted automatically, even if the highlight option not selected. Otherwise highlight will be applied only if that option selected
4- 4C Histogram
Histogram is plotted with four colors to emphasize the momentum and direction
5- Customizable
Additional to ability of selecting Calculation Method, Source, plotting along with MACD, there are few other option that allows users to customize the MACD-X indicator
Lengths are configurable, default values are set as 12, 26, 9 respectively for fast, slow and smoothing length. Setting lengths to 8,21,5 respectively Is worth checking, slower length moving averages will lead to less lag and earlier reaction to price actions but yet requires a caution and back testing before applying
Highlight the area between MACD-X Line and Signal-X Line, with colors emphasising the direction
Label can be added to display Calculation Method, Source and Length settings, the aim of this label is to server only as a reminder to trades to be aware of settings while they are occupied with charts, analysis etc.
Here comes another question, which is of more importance having the reminder or having the indicators with multi timeframe feature? Build-in Multi Time Frame features of Pine is not supported when labels and lines introduced in the script, there are other methods but brings complexity. To be studied further, this version will be with labels for time being.
EPILOGUE
MACD-X is an alternative variant of MACD, the insight/signals provided by MACD are also applicable to MACD-X with early and clear warnings for the changes in the trend.
If MACD is essential to your analysis, then it is my guess that after using the MACD-X for a while and familiarizing yourself with its unique character and personality, you will make it an inseparable companion to other indicators in your charts.
The various signals generated by MACD/MACD-X are easily interpreted and very few indicators in technical analysis have proved to be more reliable than the MACD, and this relatively simple indicator can quickly be incorporated into any short-term trading strategy
MACD | Gunbot trading strategyThis is an example of Gunbot trading with the MACD strategy. Gunbot is a multi platform crypto trading bot.
About this strategy
This strategy is based on MACD , taking advantage of signals that indicate momentum is likely changing.
A buy order is placed when the MACD line crosses up the signal line, a sell order is placed when the MACD line crosses down the signal line.
Settings used
This example uses the "pure" version of the MACD strategy, meaning both the buy method and sell method are set to use MACD . MFI is used as confirming indicator.
The following relevant settings were used, all other settings were set to the defaults:
PERIOD: 240
MACD_SHORT: 12
MACD_LONG: 29
MACD_SIGNAL: 9
MFI_ENABLED: true
MFI_BUY_LEVEL: 40
MFI_BUY_LEVEL: 20
MFI_PERIOD: 14
Full disclosure
I am the author the Gunbot wiki. This content is only meant as educational material to show an example of how Gunbot can be used, disclosing the full strategy settings used.
Disclaimer
While every effort has been made to ensure these simulations of Gunbot contain the same logic as Gunbot, they will not always buy or sell at the exact same time or prices as Gunbot (because of TradingView's inability to use ticker prices). This is close as you can get in TradingView to the real thing. Backtesting the past does NOT guarantee profit in the present or future.
Please don't use these exemplary settings without doing your own research. Results can vary depending on the chosen market and it's conditions.
What is the 'Moving Average Convergence Divergence - MACD'Introduction
Developed by Gerald Appel in the late seventies, the Moving Average Convergence/Divergence oscillator (MACD) is one of the simplest and most effective momentum indicators available. The MACD turns two trend-following indicators, moving averages, into a momentum oscillator by subtracting the longer moving average from the shorter moving average. As a result, the MACD offers the best of both worlds: trend following and momentum. The MACD fluctuates above and below the zero line as the moving averages converge, cross and diverge. Traders can look for signal line crossovers, centerline crossovers and divergences to generate signals. Because the MACD is unbounded, it is not particularly useful for identifying overbought and oversold levels.
Note: MACD can be pronounced as either “Mac-Dee” or “M-A-C-D.”
Moving average convergence divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of prices. The MACD is calculated by subtracting the 26-day exponential moving average (EMA) from the 12-day EMA. A nine-day EMA of the MACD, called the "signal line", is then plotted on top of the MACD, functioning as a trigger for buy and sell signals.
BREAKING DOWN 'Moving Average Convergence Divergence - MACD'
Moving average convergence divergence (MACD) indicators can be interpreted using three different methods:
1. Crossovers - As shown in the chart above, when the MACD falls below the signal line, it is a bearish signal, which indicates that it may be time to sell. Conversely, when the MACD rises above the signal line, the indicator gives a bullish signal, which suggests that the price of the asset is likely to experience upward momentum. Many traders wait for a confirmed cross above the signal line before entering into a position to avoid getting getting "faked out" or entering into a position too early, as shown by the first arrow.
2. Divergence - When the security price diverges from the MACD, it signals the end of the current trend. For example, a stock price that is rising and a MACD indicator that is falling could mean that the rally is about to end. Conversely, if a stock price is falling and the MACD is rising, it could mean that a bullish reversal could occur in the near-term. Traders often use divergence in conjunction with other technical indicators to find opportunities.
3. Dramatic Rise - When the MACD rises dramatically - that is, the shorter moving average pulls away from the longer-term moving average - it is a signal that the security is overbought and will soon return to normal levels. Traders will often combine this analysis with the Relative Strength Index (RSI) or other technical indicators to verify overbought or oversold conditions.
Traders also watch for a move above or below the zero line because this signals the position of the short-term average relative to the long-term average. When the MACD is above zero, the short-term average is above the long-term average, which signals upward momentum. The opposite is true when the MACD is below zero. As you can see from the chart above, the zero line often acts as an area of support and resistance for the indicator.
HOW TO TRADE ETHEREUMEthereum Trading Strategy
All we need for this trading strategy is two technical indicators:
The MACD – This is a momentum indicator that can help us spot a trend.
The MFI or the Money Flow Index an overlooked but critical technical indicator that measures the money flow into or out of a cryptocurrency.
The MACD is one of the most common indicators used by traders around the world in a variety of different markets to spot trades before they happen.
The MFI indicator is based on price action and it incorporates Volume in its calculation, which is quite similar to other oscillators. In other words, we can use the MFI indicator to measure buying and selling pressure.
We can use the MFI indicator to trigger entries and to take profits.
The easiest way to interpret the MFI indicator is that a reading above the 50 level represents an inflow of money into the cryptocurrency, while a reading below the 50 level represents an outflow of funds from the cryptocurrency.
The other critical MFI thresholds are 20 and 80. An MFI reading of 20 is considered bullish and oversold while a reading above the 80 level is considered bearish and overbought.
Step #1: Wait until the Money Flow Index drop below the 20 level
The first rule is that you always want to wait for the Money Flow Index to be in oversold territory. In other words, we need to have an MFI reading below the 20 level.
An extreme MFI reading below 20 suggests that there is very heavy money outflow from Ethereum. As history has repeatedly shown, this information can be used as a contrarian indicator.
The MFI indicator is not a standalone indicator. There are plenty of good cryptocurrencies that have high MFI reading, and most bad ones have low MFI reading.
So, in order to use the MFI indicator, we need to check it against other technical indicators which are the reason why we also use the MACD indicator.
Step #2: Wait for MACD histogram to break above the zero level
The second rule is to wait for the MACD histogram to turn positive. This is a confirmation that the bullish momentum is starting to build up. Now, we have two rules in place, but these are still not enough to trigger an entry.
Indicator-based strategies are very unpredictable which is the reason why we’ve added another confirmation signal before to enter and buy Ethereum.
Now, we’re going to lay down a straightforward entry technique for Ethereum trading system.
Step #3: After MACD turned positive, Buy after MFI also breaks above the 50 level.
As an extra measure of caution, we also like to wait for the MFI indicator to break above the 50 level before to buy Ethereum.
A reading above the 50 level represents an inflow of money into Ethereum which is the moment when smart money is stepping into the market. We want to trade alongside smart money to really make a profit trading the cryptocurrency market.
Step #4: Place Protective Stop Loss below the Previous Swing low
In order to minimize our potential loss we want to place our protective stop loss very close to the market price but at the same time at a price where it should really invalidate our trade signal.
For the Ethereum strategy, the ideal place to hide the stop loss is just below previous swing low. You can always add a buffer to protect yourself in case of a false breakout.
Step #5: Take Profits when the MFI enters Overbought territory or above the 80 level
When it comes to our Ethereum take profit trading strategy we want to cash some profits at the first sign that the market is about to turn against us. Otherwise, we risk given back some of our hard earned gains.
The first indication that the market is about to turn is when the Money Flow Index enters into overbought territory. In other words, when the MFI breaks above 80 levels, we take profits.
Use the same rules for a SELL trade – but in reverse.
Ethereum has fundamental advantages that hopefully will help Ethereum price suppress Bitcoin in the coming years.