Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
screenshot
screenshot
screenshot
screenshot

MACD - An example trading system using the MACD indicator

example trading system

A Simple system based upon the MACD. The MACD - Moving Average Convergence/Divergence is an indicator developed by Gerald Appel. The indicator is made up of three exponential moving averages. Trading signals are given when the two lines cross. The trading system example weekly & daily also uses the MACD but in histogram form.

Rules:
Buy when MACD crosses over its signal line
Sell when MACD crosses below its signal line

This trading system is included in the example trading systems that come with the free 30 day trial EOD version of Seer. Once you have filled out this form simply download Seer to try this trading system.

#Basic MACD System

#Get the line and signal from the indicator
my ($line,$signal)=MACD(12,26,9);

BuyOpen  if Crossover  ($line,$signal);
SellOpen if Crossunder ($line,$signal);
© 2010 seer trading systems ltd
feedback FAQ legal privacy