• 概述
• 评论
• 评论

# Pairs MACD

Pair's MACD is an auxiliary indicator that can be used in conjecture with Pair's Spread, Pair's RSI and Pair's Momentum Indicators for optimizing the timing of opening or closing a position in a Pair's trading strategy. Pair's MACD is an ordinary MACD indicator with the only difference being the way its price is derived.

While a simple MACD indicator uses the closing prices of only one instrument, Pair's MACD uses the Pair's Spread closing prices (see equation 2).

Let's assume that we have identified a long-term relationship between Microsoft and Intel Corporation. Additionally, let's assume that after applying an econometric research we have found that the long-term relationship between Microsoft and Intel is given by the following equation:

MSFT=-13.8362+2*INTC+error  (1)

Where the error is normally distributed with mean zero and unit standard deviation.

The above econometric equation uses daily time frame!

In more detail in our example, Pair's MACD price is derived using the following inputs:

• Pair A symbol: Is the symbol of the first pair component. For example, MSFT for the Microsoft Corporation. Its value should be a string.
• Pair B symbol: Is the symbol of the second pair component. For example, INTC for the Intel Corporation. Its value should be a string.
Before typing any pair symbol, please make sure that the corresponding investment instrument is added to the navigator window. To add an instrument, you should right-click on navigator window, go to Symbols, select the desired instrument and then click Show button.
• Mean: Is the long-term mean.  In our example -13.8362. Its value is a double.
• Integrating Coefficient: Is the co-integrating coefficient. In our example 2. Its value is a double.
• FastEMA: Is the fast exponential moving average with its default value set to 12.
• SlowEMA: Is the slow exponential moving average with its default value set to 26.
• SignalSMA: Is the signal moving average with its default value set to 9.