TS SUPPORT
home contacts site map search
MultiCharts MCFX Other Products & Services Support Company

You are here:  Home > Support > Knowledgebase

Knowledgebase


Search in     for   
     
Trend Identificator > MACD [Indicators]

Article/Author: Omega Research Inc., 1997

Download: MACD.ELA

Category: Indicator > Trend Identificator

Description:

The MACD indicator calculates 2 exponential moving averages of the lengths specified by the inputs FastMA and SlowMA. The difference between these 2 averages is then plotted as the MACD. This value is also averaged for the number of bars specified by the input MacdMA and then plotted as the MACDAvg. Finally, the difference between the MACD and the MACD average is calculated and plotted as the MADiff.

Usage:

As a trend-following indicator, the MACD may be interpreted similarly to other moving averages. When the MACD crosses above the MACD Average, an uptrend may be beginning, indicating a buy signal. Conversely, when the MACD crosses below the MACD Average, a downtrend may be beginning. As an oscillator, the MACD can signal overbought and oversold conditions.




Inputs:

FastMA - Number of bars of data to be included in calculation of the fast (shorter) exponential moving average
SlowMA - Number of bars of data to be included in calculation of the slow (longer) exponential moving average
MacdMA - Number of bars used to calculate the exponential average of the MACD

EasyLanguage Code:

INPUTS: FASTMA(12), SLOWMA(26), MACDMA(9);

PLOT1(MACD(CLOSE, FASTMA, SLOWMA), "MACD");
PLOT2(XAVERAGE(MACD(CLOSE, FASTMA, SLOWMA), MACDMA), "MACDAVG");
PLOT3(PLOT1 - PLOT2, "MADIFF");

{ALERT CRITERIA}
IF PLOT3 CROSSES OVER 0 THEN
ALERT("MACD HAS GENERATED A BULLISH ALERT")
ELSE
IF PLOT3 CROSSES UNDER 0 THEN
ALERT("MACD HAS GENERATED A BEARISH ALERT");

Support Menu

Contact Customer Support


Discussion Forum


Online Tutorials


Downloads & Check Version


Knowledgebase

Toll Free

Latest Events

June 29
We are starting beta-testing of MultiCharts 6.0 Beta 4.

September 10
We are glad to announce the release of MultiCharts 5.5!

September 10
Users of MultiCharts's can now subscribe to Barchart's real-time data feeds from $49/m.

February 10
MultiCharts received GOLD in Trade2Win's 2008 Members' Choice Awards.

Devember 8
Free MCFX PRO is now also available with Forex.com




© 1999-2010 TS Support, LLC. All rights reserved.