GRID Strategy

Avatar
  • updated
  • Completed

Hello community, I hope you are all well.

The intention, is to always hold 1 buy and 1 sell every 200 pips. If the EA finds a SELL line alone (without a buy at 200 pips, then the EA opens a BUY, and vice versa), thus staying in the market constantly.

Let's assume this scenario in a CENT account:

1- The EA opens 1 BUY and 1 SELL order every 200 pips.

2- The price goes up and opens 2 orders plus 1 BUY and 1 SELL order.

3- The price goes up more and opens 2 orders plus 1 BUY and 1 SELL.

4- The price keeps rising and the EA closes a BUY with more profit and makes a partial close of the SELL that has more loss.

5- The EA checks to see if there are BUY and SELL orders 200 pips away, if there are no orders 200 pips up or down, the EA opens a BUY and/or SELL order.

6- The price continues to rise and opens 2 more orders, 1 BUY and 1 SELL.

7- At this moment, the price changes direction and starts to go down.

8- The EA encounters an old SELL line (no buy, because it was previously closed), so the EA opens a buy order.

9- The price keeps going down and the EA closes a SELL with more profit and does a partial close of the BUY which has more loss.

I currently do this with 3 EAs. 2 EAs that open orders in GRID, 1 in favor of the trend and one against. And a 3rd EA that does the closes, but not partial, but total, i.e. closes several winning orders for one losing order. But partial closes are better, but I don't have an EA that does it.The problem with my strategy is that when it closes winning orders for a losing order, it leaves gaps with sells or buys alone, so it takes longer to profit, since it has to get to the last order in favor of trend or the last order in favor of trend, to continue opening orders in GRID.

What do you think? I hope you get the idea.

Avatar
0
Michel

Thanks for the .SET, although it does not give priority to close the orders that have higher losses. In the meantime, I use CP to open the orders in GRID and the other EA to close the orders.

I don't trade with MartinGala, I trade with fixed lot. I open buy and sell orders every X amount of pips, depending on the pair to trade.

The only stone in the shoe of GRID strategies and even more with fixed lots, are the strong trends, and the only way to counteract them is closing those that have a larger amount in negative, along with those that have a larger amount in positive.

It is a pity that what I want to express is not understood.

Avatar
0
Ulises Cune

I use this GRID set file for AUDNZD and close the losing trades with the winners

AUDNZD_GRIDv2.set

Can be used for many more pairs.

Avatar
0
Michel
Quote from Ulises Cune

I think the option would be

Allow close both ways = False

I appreciate the intention to help, but I do not comprehend why you do not understand what I am trying to say.

Please look at this image, and tell me: If CP had not closed the winning sales that were in the area marked in red, for the purchases that were in negative, you would not have preferred to close the last sale (the one marked in green below). Each entry is 100 pips away (CENT account). The downside was 841 pips, enough to close several negative sell orders.

Understand the idea: look for the losing order farthest from the price and close it with the winning orders farthest from the price and/or with the most positive Buy and Sell amounts.

Close negative orders farthest away from the price, using orders in favor of trend and on reversals.

This is the .set. The chart is GBPUSD as of 2021-01-11. CP MT5 - SystemGRID 10 - Fixed lot 0.1 - Pr....set

With this .set CP MT5 - SystemGRID 10 - Fixed lot 0.1 - NO....set you can see the opening of BUY and SELL orders without closing any of them. You can see that in price reversals, you can close negative sell orders with positive sell orders. And if to these negative sell orders closes, positive buy orders are included to be able to close negative orders, the better.

There is an EA on mql5.com called: Close Minus by Plus. It is the one I am using in my account. The EA closes winning orders for a losing order. The problem comes, when using partial closes. So the best way would be to close only negative orders that are further away from the price.

Avatar
0
Ulises Cune

I think the option would be

Allow close both ways = False

Avatar
0
Michel

Thanks Ulises, I am aware of the partial closure options. However, what I am looking for is for CP NOT to close sell orders with buy orders and buy orders with sell orders, but to close losing orders that are further away from the price, i.e. use winning buy and sell orders to close a losing order that is farther away from the price.

Avatar
0
Michel
Quote from Andrey Khatimlianskyi

Try to use "Hedge: Close partial after order #" with "Hedge: Close main series by opposite main series" = true.

Hi Andrey. Sorry, I wanted to ask if CP has the function to partially and/or fully close first the losing orders farthest from the price or with the largest negative amount, with winning orders farthest from the price or with the largest positive amounts.

My primary strategy is to protect my account from any strong trend that sooner or later will happen, closing losing orders far from the price, thanks to the openings of orders in favor of the trend and thanks to the small reversals, and while all this is happening, I am accumulating small profits.

You can see the screenshot I made to better understand what I am getting at. If I add up all the green dots, I get 40.79, enough to close 2 orders that are further away from the price (red dots), and I also get a profit of $10. If the price continues to fall, it will be the sell orders already opened, which will cover the purchases that are in loss. My intention is always to give priority to closing losing orders that are FARTHER away from the price.

In this scenario on the chart, CP closes the winning sell orders with the losing buy orders, and I don't think this is ideal, because if after closing the orders, the price goes up again, the sell orders will continue to accumulate more and more, until they reach enough buys to be able to close sales.

The image I posted is just an example and was intentional for the purpose of understanding my strategy, which is to prioritize the closing of losing orders that are farther away from the price, with winning orders that are farther away from the price, regardless of whether they are sales and purchases closing a single sale.

Avatar
0
frank

Thanks Michel,

i will check your Setfile and give you a replay.

Frank

Avatar
0
Michel
Quote from frank

Hi Michel,

I wnat to rebuild your strategy, because the idea is very interesting. But I`m fail. Can you share your Setfile please.

Frank

Hi Frank, yes, no problem. Actually I'm still looking for optimization to protect the account when strong trends inevitably happen. It is my priority. The .sets are just tests of 2 strategies. With the .set names, they explain what each strategy consists of.

CP MT5 - SystemGRID 10 - Fixed lot 0.01 - P....set

CP MT5 - SystemGRID 10 - Fixed lot 0.1 - Pr....set

I do not use MG. Tests on CENT account.

Avatar
0
frank

Hi Michel,

I wnat to rebuild your strategy, because the idea is very interesting. But I`m fail. Can you share your Setfile please.

Frank