• Overview
  • Reviews (1)
  • Comments (22)
  • What's new


Martex ("martingale" and "Forex") is a universal Expert Advisor for Forex with averaging (martingale) strategy. Martex is able to average third-party orders including the ones opened by the trader manually. To do this, simply set the EA magic number similar to that of the open order. The Expert Advisor will be interesting for both beginners and experienced traders.

Features and advantages of the Martex EA

  • martingale is available for orders opened by the trader manually and even at a "lock";
  • two averaging styles to choose from (Classic and Aggressive);
  • two martingale strategies to choose from, based on different indicators;
  • it is possible to trade only the initial lot size when using martingale;
  • it is able to work without martingale as an ordinary Expert Advisor;
  • it has an optional stop loss;
  • there are separate indicators for opening trading positions and for martingale;
  • there are two customizable timeframes, one for trading and the other for martingale;
  • it is possible to set a custom drawdown level, after reaching which the EA suspends its operation;
  • it is possible to set a custom Stop Out level, after reaching which the EA automatically closes all open positions;
  • it has trailing stop and breakeven functions for single orders and for orders with averaging;
  • closing of single orders or series of martingale orders with profit when the direction of moving averages changes;
  • when in profit, single orders are closed by take profit, while series of orders opened by martingale are closed by profit percentage based on balance;
  • it is possible to limit the number of orders opened by martingale;
  • the EA works with "Hot keys", which can be used to quickly close all open positions in the terminal;
  • the Martex EA works on both dollar (USD) and rouble accounts (RUR);
  • works on accounts with 4- and 5-digit quotes.

Parameters of the EA (shortened)


  • Magic Number - magic number;


  • Take Profit - the value of take profit;
  • Stop Loss - stop loss;
  • Use stop loss - use stop loss;
  • Lots - setting fixed lot size;
  • AutoLot - Risk in % - automatic calculation of lot size.


  • Timeframe for Moving Averages (MA) - timeframe for the МА;
  • Close orders with profit on MAs - close orders when the МА direction changes;
  • Period Long MA - period of the long МА;
  • Shift Long MA - shift of the long МА;
  • Type Long MA - type of the long МА (calculation method);
  • Price Long MA - applied price for the long МА;
  • Period Short MA - period of the short МА;
  • Shift Short MA - shift of the short МА;
  • Type Short MA - type of the short МА (calculation method);
  • Price Short MA - applied price for the short МА.



  • Martingale on/off - enable/disable martingale;
  • Profit % martingale - profit percentage for martingale, when reached all orders will be closed;
  • Drawdown in %, to stop trading - drawdown percentage, when reached trading will be suspended;
  • Stop Out %, close all orders - loss percentage, when reached all orders will be closed;
  • Loss in pips for martingale - loss in points to activate the martingale;
  • Step martingale - minimum step between the martingale orders;
  • Multiplier(Classic) - multiplier for the classic martingale;
  • Style martingale (Classic, Aggressively) - selection of the martingale style;
  • Divider (Aggressively) - divider for the aggressive martingale;
  • Maximum number of orders - maximum number of orders for the martingale.


Block 7 «WORK FRIDAY» - work on Friday.

The complete guide to the Martex EA, testing reports and the .set files can be found in the Comments section.

2017.02.07 10:54 

мне дико понравилось.

Version 3.0 - 2017.03.14
Optimized control menu EA and added additional functions:
1. Made the total profit for orders with a martingale.
2. In Block 1 "GENERAL SETTINGS" added to switch the color of the chart background - "Background graphics".
3. In Block 2, "RISK MANAGEMENT" has replaced "Close profit on the bar" to "Close orders with profit on MAs"- the closing of orders with a profit on the moving average. Now open orders can be closed when it changes direction of moving averages (if there is profit).
4. Moved to the Block 2 select the direction to one-way trade BUY - Buy trades only и SELL - Sell trades only.
5. From Block 5 "MARTINGALE PARAMETERS" removed team "The initial volume of the lot". In order to set the initial lot size should be in the multiplier the "Multiplier" to put 1.
6. In Block 6 "MARTINGALE INDICATORS" added another moving average. You can now choose what strategy the EA will average a warrant at the intersection of two MA or when one MA breakouts.
7. Also in this Block 6 added the command "Close orders by martingale MAs" - closing orders martingale (with profit) by the moving average of that block.