Idea: close profitable trades with opposite loss trade (antimartingale enabled)

Avatar
  • updated
  • Completed

Hello Community!

The EA is called: Close Minus by Plus. You can find it in the mql5.com store (I don't know if it is allowed to add links to other EAs) Exp5 Close Minus by Plus for MT5.ex5. This EA is in charge of managing open orders, closing 1 order with higher negative amount, for several orders that have higher positive amount.

That is, if you make purchases and sales in both directions, and there is a strong trend, the EA closes orders after several orders in positive for an order with a greater negative amount, regardless of whether they are purchases or sales. On reversals, it still closes the order with the largest negative amount for several positive orders.

Unfortunately, with CP I have tried to implement it, but without success. CP comes close to what the EA does, but when there are reversals (entries with Anti-MartinGala), CP closes them. That's why I wanted to expose my idea and evaluate it.

This is my .set: CP MT5 - Fixed lot 0.01.set  <<--- For CENT account. You will see that for example: In a downtrend where there are MartinGale entries (BUYS), when the price starts to make a reversal, CP opens Anti-MartinGale orders (SALES), but the CommunityPoweb closes them to me, and I don't want that to happen, I have tried a thousand ways, but it always closes them. The idea is to keep them open, so that if the price goes down again, there are already those SELL orders open, to keep closing the BUY orders that go with negative amounts.

I hope the idea is understood.

Avatar
0
Michel
Quote from Andrey Khatimlianskyi

Michel, it does.

I showed the screen in my previous reply — https://communitypowerea.userecho.com/agent/#comment-2803

Of course, you should to explain what do you want. Nobody wants to test another EA to understand you idea.

You said you want to close most profitable buys with largest negative sell — I told you how to do this.

Let's continue with your updated set (with "Hedge: Close partial after order #" enabled and other functions that close your profitable orders before they can close your loss disabled).

Show me where do you want it to close sum profit (but it doesn't do it).

Tetster ini will be the easiest way to continue.

You can also PM me for the faster response. I can't read  he forum every day at the moment.

I'm sure Andrey, that many have tried EA: "Close Minus by Plus", but well, that's humanity.

How can I communicate privately with you?

Avatar
0
Andrey Khatimlianskyi
Quote from Michel

I'm sure Andrey, that many have tried EA: "Close Minus by Plus", but well, that's humanity.

How can I communicate privately with you?

https://t.me/komposterius

Avatar
1
Andrey Khatimlianskyi
  • Planned (collecting votes)

Discussed in PM.

EA should close any 2 or more profitable orders with most loss order. No matter what are orders directions (buy/sell).

Will do it soon.

Avatar
1
Andrey Khatimlianskyi
  • Completed

Done in 2.44.1