forex software

Create and Test Forex Strategies

forex software

Sidebar

Indicator List

indicator:oscillator_of_macd

Table of Contents

Oscillator of MACD

FIXME

Parameters

Logical rules for Opening Logic Condition slot.

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

Logical rules for Closing Logic Condition slot.

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

List box parameters

  • Smoothing method (Exponential). Moving Average method used for smoothing the MACD value. Options: Simple, Weighted, Exponential, Smoothed.
  • Base price (Close). The price the indicator is based on. Options: Open, High, Low, Close, Median, Typical, Weighted.
  • Signal line method (Exponential). The smoothing method of the signal line. Options: Simple, Weighted, Exponential, Smoothed.
  • What to compare (Histograms). The smoothing method of the signal line. Options: Histograms, Signal lines, MACD lines.

Numeric box parameters

  • MACD1 slow MA (26). The period of first MACD slow line. Minimum: 1, Maximum: 200.
  • MACD2 slow MA (32). The period of second MACD slow line. Minimum: 1, Maximum: 200.
  • MACD1 fast MA (12). The period of first MACD fast line. Minimum: 1, Maximum: 200.
  • MACD2 fast MA (21). The period of second MACD fast line. Minimum: 1, Maximum: 200.
  • MACD1 Signal line (9). The period of Signal line. Minimum: 1, Maximum: 200.
  • MACD2 Signal line (13). The period of Signal line. Minimum: 1, Maximum: 200.

Implementation

C# source code: Oscillator of MACD.

MQL source code: Oscillator of MACD.