forex software

Create and Test Forex Strategies

forex software

Sidebar

Indicator List

indicator:macd

Table of Contents

MACD

FIXME

Parameters

Logical rules for Opening Logic Condition slot.

  • MACD line rises;
  • MACD line falls;
  • MACD line is higher than zero;
  • MACD line is lower than zero;
  • MACD line crosses the zero line upward;
  • MACD line crosses the zero line downward;
  • MACD line changes its direction upward;
  • MACD line changes its direction downward;
  • MACD line crosses the Signal line upward;
  • MACD line crosses the Signal line downward;
  • MACD line is higher than the Signal line;
  • MACD line is lower than the Signal line;

Logical rules for Closing Logic Condition slot.

  • MACD line rises;
  • MACD line falls;
  • MACD line is higher than zero;
  • MACD line is lower than zero;
  • MACD line crosses the zero line upward;
  • MACD line crosses the zero line downward;
  • MACD line changes its direction upward;
  • MACD line changes its direction downward;
  • MACD line crosses the Signal line upward;
  • MACD line crosses the Signal line downward;
  • MACD line is higher than the Signal line;
  • MACD line is lower than the Signal line;

List box parameters

  • Smoothing method (Exponential). The smoothing method of Moving Averages. Options: Simple, Weighted, Exponential, Smoothed.
  • Base price (Close). The price the Moving Averages are based on. Options: Open, High, Low, Close, Median, Typical, Weighted.
  • Signal line method (Simple). The smoothing method of the signal line. Options: Simple, Weighted, Exponential, Smoothed.

Numeric box parameters

  • Slow MA period (26). The period of Slow MA. Minimum: 1, Maximum: 200.
  • Fast MA period (12). The period of Fast MA. Minimum: 1, Maximum: 200.
  • Signal line period (9). The period of Signal line. Minimum: 1, Maximum: 200.

Implementation

C# source code: MACD.

MQL source code: MACD.