multi martin

multi martin
Download ALL MT5 experts (1593)
YouTube Video Thumbnail



Similar MetaTrader Tools

multi martin

Info

The multi martin is a Expert Advisor for MetaTrader 5 that this is a multi-asset expert adviser based on martingale trading strategy. its original idea is taken from another expert adviser - available for mt4.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use multi martin

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

this is a multi-asset expert adviser based on martingale trading strategy.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: Advanced Risk Manager: Auto Suffix Detection Multi-Currency Lot Sizer - another powerful expert for MetaTrader 5 traders.


Also recommended: vr rsi robot: multi-timeframe rsi trading strategy for metatrader 5 - similar expert with strong performance on MetaTrader 5.

this is a multi-asset expert adviser based on martingale trading strategy. its original idea is taken from another expert adviser - available for mt4.
warning. martingale is easy yet very dangerous strategy. evaluate your risks carefully.
the strategy is to open reversal trades with increased lots after every loss, until a profitable trade occured or a maximal number of reversals achieved. in both cases next trade will start with initial lot.
in comparison to the original one, this expert adviser demonstrates several points:

adaptation from single-symbol to multi-symbol processing;

source code refactoring for easier reading and support;
also some bugs were fixed.
the program can still be improved in many aspects, for example, operation by timer, volatility analysis, etc. are left out of consideration.
input parameters
specific symbol settings - used for step by step optimization on every work symbol (should be selected as current chart symbol).

usetime - enable/disable new trades opening according to the range of hours [hourstart..hourend];

hourstart - starting hour of the range when new trades are allowed; takes effect if only usetime is true;

hourend - ending hour of the range when new trades are allowed; takes effect if only usetime is true;

lots - initial lot size;

factor - multiplication factor for increased lots;

limit - maximal number of multiplications, if reached - initial lot is used;

stoploss - distance to stoploss in points (no automatic pip adjustement);

takeprofit - distance to takeprofit in points (no automatic pip adjustement);

starttype - trade type for starting order: o - buy, 1 - sell;
common settings - used for trading.

magic - expert id;

skipbadtime - an option to wait predefined period of time after trading errors (such as "not enough money", "lost connection" etc);

worksymbols - a string of work symbols and their specific settings, which should be selected after separate optimizations per every symbol; the settings for symbols are separated by semicolon; the format is "name±lots*factor^limit(sl,tp)[start,stop];...", for example "eurusd+0.01*2.0^7(500,500)[2,22];audjpy+0.01*2.0^5(500,500)[1,21]" -- to trade eurusd and audjpy starting with buying (the plus sign) of 0.01 lots, then multiplied by 2 on losses up to 7 or 5 times correspondingly, stoploss and takeprofit are all 500 points, trading window differs by 1 hour;

trail - a mode how to treat stop orders: none - fixed level stoploss (no trailing), break-even - trail after profit equal to stoploss size in points, straight - trail from very beginning (may end up with a loss up to the stoploss size in points, but not larger than that);
when used with multi-currency settings, it's advisable to place the expert to a chart with most liquid symbol (where ticks arrive most frequently and trading sessions are continuous), for example eurusd. alternatively, one can replace ontick event handler with ontimer and start a timer in oninit.
example reports
multimartin trade performance on eurusd for 3 years 2016-2019
multimartin trade performance on eurusd,audjpy,gbpchf for 2019

You may also like: multik expert advisor - excellent alternative for expert users on MetaTrader 5.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property version "1.4"
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#include <mt4bridge/mt4marketinfo.mqh>
#include <mt4bridge/mt4time.mqh>
#include <mt4bridge/mt4account.mqh>
#include <mt4bridge/mt4orders.mqh>  // https://www.mql5.com/en/code/16006
enum bad_time
{

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.