Discussion of article "Developing a cross-platform grider EA (part II): Range-based grid in trend direction"

 

New article Developing a cross-platform grider EA (part II): Range-based grid in trend direction has been published:

In this article, we will develop a grider EA for trading in a trend direction within a range. Thus, the EA is to be suited mostly for Forex and commodity markets. According to the tests, our grider showed profit since 2018. Unfortunately, this is not true for the period of 2014-2018.

Using the basic settings, we reached the recovery factor of about 2, i.e. the same result as when using the final settings at AUDUSD.

This result can be improved further if we change the "Max orders at the same price" parameter we have not described in the article yet. Its default value is 33. This means the EA is allowed to open up to 33 positions at the same price in a single direction. In reality, this means unlimited number of positions at a single price since we never opened more than 10 positions at a single price during the tests.

How are positions opened at a single price? All is simple. Suppose that the price moves up and touches the nearest order. After that, the price rolls back so that the EA sets a new limit order above at the same price. After that, the price tests the level again touching a placed order, and so forth.

We have not considered the "Max orders at a single price" parameter previously since opening unlimited number of positions at the same price allowed increasing the EA profitability. But the case is different with AUDCAD. Perhaps, this has to do with the symbol price movement, but if we disable placing limit orders on prices that were already used to open positions, the result will be better. Thus, set the "Max order at a single price" to 1: 

Do not place orders if the level aready has positions, AUDCAD

Author: Roman Klymenko

 

I made a substitution

and put it at the beginning

#include <MT4Orders.mqh>


As a result, everything worked in MT5. Is it worth the effort to write half of the cross-platform code which can be not used?

 

Thank you very much ! Author: Roman Klymenko

For his labour.

Everything works perfectly Thank you! Health and All the Blessings!

 

Thank you very much, Roman!

I've been looking for an EA on this strategy for a long time!

Could you please fix this button bug as well?

All the best!
 
Great one mate, I hope to see the next part soon. Congratulations.
 
Excellent article. I hope the next part will be ready soon.
 
In the tester gives wow cool result...... let's see how it will work in practice!!!!!
 
I don't get it. Am I the only one who can't find a way to change a step??? What's it called? (the step size of each subsequent trade)
 
fmex do bitcoin perpetual contracts, daily profit amount, daily profit rate ranking top 10 are bonus, every day!

FCoin system FMex bitcoin perpetual contract, no pins, no bets, good depth, no penetration apportionment. Full memory model trading engine, enjoy trading. Daily profitability, profit amount ranked first reward 1BTC, pending orders, sorting, trading are sent to the platform coin, pending orders to make the market to earn commission, platform coin daily dividends + repurchase destruction. The other FCoin spot main board is free of commission, USDT financial 16% annualised, with deposit and withdrawal.
h ttps:// www.fcoin.pro/i/Rmz2O
FCoin
  • www.fcoin.pro
领先的数字资产交易技术服务商,包含主板交易、FOne交易、法币交易、杆杆交易及理财等版块。
 
Happy #:
I don't get it. Am I the only one who can't find a way to change a step??? What's it called? (the step size of each next trade)

Excuse me, have you found a way to change the pitch of orders?