Mastering the Martin EA for MetaTrader 5: A Trader's Guide

Mike 2017.11.03 20:52 19 0 0
Attachments

Author of the concept: Vladimir Khlystov, mq5 code author: barabashkakvn.

Inspiration behind the EA:

Let's dive into the details of the Martin Expert Advisor (EA), which was crafted at the request of one of our forum members.

Overview of the Strategy

As shared by vvx080, the strategy revolves around setting up a grid of stop orders. Here’s how it works:

First, we place a pair of orders—one sell and one buy. If one of these orders gets triggered, the other is deleted. If the trade goes south, after a 10-point move, we place an opposite order with double the lot size. If that one doesn’t pan out either, after 20 points, we open another opposite order—again, twice the size of the previous one. This continues, doubling the lot size after each unprofitable trade.

With this method, the chances of wiping out your deposit are slim, as long as we implement effective trailing to secure those 300 profit points. Importantly, we don’t utilize stop loss or take profit; trades are closed once we achieve a total profit. This approach is resilient, whether in a trending market or a flat one, as profits are trailed during trends.

Here’s a preliminary breakdown of lots and the expected deposit:

  1. sell 0.1 -10p = -1
  2. buy 0.2 -20p = -3
  3. sell 0.4 -30p = -12
  4. buy 0.8 -40p = -32
  5. sell 1.6 -50p = -87
  6. buy 3.2 -60p = -213
  7. sell 6.4 -70p = -514
  8. buy 12.8 -80p = -1194
  9. sell 25.6 -90p = -2886

I believe a deposit of around 3000 should suffice, but reaching the 8th or 9th order is quite rare. There may be some nuances I haven't considered; however, this is the essence of the idea. The EA will help refine the accuracy.

While this EA employs a lot-increasing strategy, it doesn’t fit the traditional definition of martingale. Plus, it can navigate out of flat markets, which many martingale systems struggle with.

I encourage you to share your insights and suggestions for enhancing this strategy. However, please refrain from dismissing the martingale approach without first testing the EA on a demo account and understanding how it functions.

Expert Advisor Parameters

  • InpStep - the distance between positions.
  • InpProfitClose - the minimum profit at which all positions will be closed.
  • InpLot - the volume of each position.

Here are the testing results on EURUSD:

Martin test

List
Comments 0