Discussion of article "Developing a cross-platform grider EA"

 

New article Developing a cross-platform grider EA has been published:

In this article, we will learn how to create Expert Advisors (EAs) working both in MetaTrader 4 and MetaTrader 5. To do this, we are going to develop an EA constructing order grids. Griders are EAs that place several limit orders above the current price and the same number of limit orders below it simultaneously.

Testing the EA

Our EA is ready. Now we should test it and draw conclusions about the trading strategy's performance.

Since our EA works both in MetaTrader 4 and MetaTrader 5, we are able to select the terminal version, in which to perform the test. Although the choice is quite obvious here. MetaTrader 5 is considered to be more comprehensible and better.

First, let's perform testing without any optimization. Our EA should not fully depend on the inputs' values when using reasonable values. Let's take:

  • EURUSD symbol;
  • M5 timeframe;
  • period from August 1, 2018 to January 1, 2019;
  • tets mode 1 Minute OHLC.

Inputs' default values remain intact (lot 0.01, step 10 points, 7 orders per grid, take profit $1).

The result is shown below:

Balance chart during the first EA test

Author: Roman Klymenko

Developing a cross-platform grider EA
Developing a cross-platform grider EA
  • www.mql5.com
Most frequent users of this website know pretty well that MQL5 is the best option for developing custom EAs. Unfortunately, not all brokers allow creating accounts available in MetaTrader 5. Even if you currently work with a broker that allows that, you may switch to a broker offering only MetaTrader 4 in the future. What are you going to do...
 
I removed mql5-inserts from the original source. In MT5 it runs like this
#include <MT4Orders.mqh>
#include "griderEA.mq4" // https://c.mql5.com/3/271/griderEA.mq4
Files:
griderEA.mq4  31 kb
 
fxsaber:
I removed mql5-inserts from the original source. In MT5 it runs like this

And it worked?

So much work a man has done for nothing. Clearly does not read the forum carefully.

As an example of programming will probably be useful

Good luck

 
Vladimir Perervenko:

And it worked?

It can't not work, because the trading logic remains the same.

A man has done so much work for nothing. Clearly he does not read the forum carefully.

As an example of programming will probably be useful

An article with its own goals.

 

The article is useful from the point of view of learning programming. However, from the point of view of analysis, the grid method is a ruthless grinding of the deposit.

And such results are not accidental at all, but natural.

Without complex analysis of price movement dynamics (activity, direction, search for overbought/oversold zones, analysis on several scales), a trading system cannot be profitable if we are talking about a long period of trading.

The risks are too great, we can say that the grid method is a complete "disrespect" to such a complex process as price movement in financial markets.

 

Deep misunderstanding or naive misconception.

Введение

I think it is no secret on this site that MQL5 is the best option for creating your own Expert Advisors. But here's the trouble - not all brokers allow you to create accounts available in MetaTrader 5. And even if you are currently working with a broker that allows it, it is quite possible that in the future you will have to switch to a broker that has the ability to work only in MetaTrader 4. And what to do in this case with all those Expert Advisors that you have created in MQL5? Spend a lot of time reworking them for MQL4? Wouldn't it be better to make an Expert Advisor that can work in both MetaTrader 5 and MetaTrader 4?

Do you even understand what a broker is? What is the difference between a broker and a dealer?


Conclusion

The main goal of this article was to try to write a trading advisor that will work in both MetaTrader 4 and MetaTrader 5.

It is impossible! The attempt is unsuccessful. Don't fool yourself and others.

MT4 Expert Advisor cannot work on MT5 and vice versa. The fact that you make a conditional compilation of two Expert Advisors does not mean that the Expert Advisor is the same.


Can your EA work at a broker? Or differently, can it work on a netting account? Why is the broker mentioned many times and never netting?

In short, a fail.

I am deeply disappointed with the articles here lately.

 
Sergey Chalyshev:

MT4 Expert Advisor cannot work on MT5 and vice versa.

Can your Expert Advisor work at a broker? Or in other words, can it work on a netting account? Why is a broker mentioned many times and never netting?

It can. There's nothing complicated about it.

 
fxsaber:

It can. There is nothing complicated about it.

I will repeat once again: MT4 Expert Advisor cannot work on MT5.

Try to run expert.ex4 in MT5 terminal. And vice versa ex5 in MT4.

You just write two different codes, twice as big, and make the compiler choose the necessary pre-specified lines from your source.

I don't even want to talk about indicators, ticks and multisymbol strategies.

 
Sergey Chalyshev:

I repeat once again: MT4 Expert Advisor cannot work on MT5.

Try to run expert.ex4 in MT5 terminal. And vice versa ex5 in MT4.

Don't make a fool of yourself by talking about EX4/5.

You just write two different codes, twice as big in essence, and make the compiler choose the necessary pre-specified lines from your source.

Works without changing the mq4 code

Forum on trading, automated trading systems and testing trading strategies

Discussion of the article "Creating a cross-platform Expert Advisor (Gridder)"

fxsaber, 2019.03.08 07:54 pm.

I removed the mql5 inserts from the original source. In MT5 it runs like this
#include <MT4Orders.mqh>
#include "griderEA.mq4" // https://c.mql5.com/3/271/griderEA.mq4


Without changing mq4-code by analogy you can make the gridder work on Netting.

 

Quote:

Однако, также не стоит думать, что сеточные торговые стратегии не могут приносить прибыль. Например, посмотрите на данные сигналы:

But all three links to signals with "wild" equity drawdown... Maybe we should remove this strange adverts?
 
Without the use of market price inefficiency analysis, the gridder is useless.