Need help with partial closing

Avatar
  • updated
  • Answered

Hello,

I need help with incorporating closing losing orders (full or partial closing) for a setting file that I use. 

If the ea has taken 4 or more orders, I want it to close 50% of the first order. 

Thanks for helping.

cp multi mean reversion.set 

Avatar
1
Quote from Asad

The number of orders becomes more than 4. 

Hmmm.. We don't have such an option.

But you can try setting negative Min Profit to close (and Min profit % to close).

Avatar
0
Asad
Quote from Andrey Khatimlianskyi

So what is the condition to close it?

The number of orders becomes more than 4. 

Avatar
0
Quote from Asad

Alright, and how do I make it close the first order irrespective of any condition/s?

My intention is to close out the earliest order by a set percentage of that earliest order size lets say 50% irrespective of the total sum/profit etc. 

So what is the condition to close it?

Avatar
0
Asad

Alright, and how do I make it close the first order irrespective of any condition/s?

My intention is to close out the earliest order by a set percentage of that earliest order size lets say 50% irrespective of the total sum/profit etc. 

Avatar
0
Andrey Khatimlianskyi
  • Answered
Quote from Asad

Yes, I have tried that with these settings but it is not closing. 

Image 6180

Image 6181

It will close the 50% of the most losing order (#16 on your screen) when the sum profit of most profitable orders will be >= loss to close.

Now you have only +0.18 profit and loss is -19.77 * 50% = -9.885

Avatar
0
Asad

Yes, I have tried that with these settings but it is not closing. 

Image 6180

Image 6181
Avatar
0

Hi! And what is your problem? Have you tried to activate Partial close after order #4 and set Min part to close = 50%?