Blog Post On: 12/27/2009
The following back-test documents the results of testing LONG and SHORT trades of the MACD Line crossing ZERO and the MACD Signal Line crossing ZERO.
The back-test in this post outperforms the most common MACD trading signal which is the MACD crossing the signal line. If a trader wants to use MACD for a trading system, without other confirming signals, it is best to use MACD crossing ZERO vs. MACD crossing the signal line.
Objective: Document historical returns using single indicators as trading systems.
Indicator/System: MACD and SIGNAL Crossing Zero
Ticker: PowerShares - QQQQ
Start Date: 3/11/1999
End Date: 12/01/2009
Max Stop Loss: 8%
I. MACD Crossing Zero Line
xBuy = Cross(MACD(),0);
xSell = Cross(0,MACD());
PlotBuy = ExRem(xBuy ,xSell);
PlotSell = ExRem(xSell ,xBuy );
Buy = (PlotBuy);
Sell = (PlotSell );
Short=Sell;
Cover=Buy;
PlotShapes(shapeUpArrow * PlotBuy , colorGreen, 0,L);
PlotShapes(shapeDownArrow * PlotSell , colorRed, 0,H);
Number of Trades and % Profit
II. MACD Signal Line Crossing Zero
xBuy = Cross(SIGNAL(),0);
xSell = Cross(0,SIGNAL());
PlotBuy = ExRem(xBuy ,xSell);
PlotSell = ExRem(xSell ,xBuy );
Buy = (PlotBuy);
Sell = (PlotSell );
Short=Sell;
Cover=Buy;
PlotShapes(shapeUpArrow * PlotBuy , colorGreen, 0,L);
PlotShapes(shapeDownArrow * PlotSell , colorRed, 0,H);
Number of Trades and % Profit
Conclusion: MACD Crossing ZERO produced 13.84% annual returns and out performs the MACD Signal line crossing zero, and MACD Crossover (crossing the signal line). The caution is that this strategy only result in 35% successful trades.
All back-tests were performed with AMIBroker
Stock Trading Systems