Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.08.05 10:56

MartGreg - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 25
martingail.mqh (3.26 KB)view
martgreg_1.mq5 (3.53 KB)view

The Expert Advisor uses two MACD indicators. The first MACD is used to find the deal entry, the second is used to determine the trend.

The money management is based on the fixed part and martingale system with limited number of doubles.

The libraries must be placed to the terminal_data_folder\MQL5\Include folder of the client terminal.

Input parameters:

  • DML- deposit size for minimal allowed lot for the account;
  • Ud - number of doublings. It begans with 0 - no doublings;
  • Stop - Stop Loss value in points;
  • Tp - Take Profit value in points;
  • Slipage - Slippage in points;
  • MACD1Fast - Fast ЕМА for MACD, used to find the entry;
  • MACD1Slow - Slow ЕМА;
  • MACD2Fast - Fast ЕМА for MACD, used to determine the trend;
  • MACD2Slow - Slow ЕМА.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

PA adaptive MACD PA adaptive MACD

Phase accumulation adaptive MACD - completely adaptive MACD

Basket Chart Creator Basket Chart Creator

Basket offline chart creator script using geometric mean method.