Partial Close - don't reopen closed trades or keep the lot sizes

Avatar
  • updated
  • Completed

CommunityPower 2.54.EURUSD.M5.20221128_2022....ini

Image 4445

Hi. (Sorry, google translate). When the price moves against the first order, for example, 6 orders are opened. The market may turn around and with a partial closure, Order 6 and order 1 may close. Then Order 5 and order 2 may close. There will be order 3 and order 4. Now if the price goes against us, the adviser will reopen four orders. The total volume of orders will increase significantly. This may increase the drawdown. I suggest making two options for the trader to choose from:

1. Prohibit the opening of orders that have been closed using the partial closing function.(Already suggested by Sai Pratap).

2. Leave the possibility of opening martin orders, provided that the total volume will be the same.

There may be other options. Suggest and let's discuss.

How would you rate the customer service you received?

Satisfaction mark by Victor 9 months ago

Add a comment about quality of support you received (optional):

Duplicates 1
Individual properties: Open next order in next level after close

For example, in one-way strategies, such as the strategy of only buying index like NASDAQ , and when using "individual properties", when closing with a profit at a certain level after rising, and then the price returns to the same level, the EA opens the order again, but I want an additional option that prevents opening the order from the same level that It has been used before so that the next order jumps to the next level.

To clarify more:

For example, Nasdaq, we have a grid of 10 levels as follows:

A buy order is opened from level 15,000. Step is 1000. The next order is opened at level 14900.

We have activated the individual closing at 500.

If the rise is achieved, the order will be closed at 14950.

If the price has returned to the 14900 again I want it not to opening again at this level and I want to wait for the next level 14800 to open the new order.

Thanks

Avatar
0
aramabdo
Quote from Andrey Khatimlianskyi

I've started refactoring the series management.

I will keep the correct last order number so that the martingale series does not escalate after a partial close.

Wow

love this

cant wait for testing

Avatar
2
Andrey Khatimlianskyi
  • Completed

Who wants to be the first to test this new feature?

I don't want to publish it on the channel, I want to test it with a small group of enthusiasts first and discuss the results.

So, now the EA remembers the first order of the series, and uses it for all the calculations, even when it is already closed by the Partial close or individual SL/BE/TS. This will affect all strategies that use any function that can close the first order earlier than the others. But this way of calculating is more correct, so I really want to keep it in the future versions.

Another improvement is the parameter "Keep the correct series" (in the end of the martingale section).

When it is false, EA works as worked before -- new order of the series gets the number = "number of opened orders + 1". For example, after partial close of orders #1 and #3, next martingale order will have number #2 and you will see two orders with #2.

When this parameter is true, the EA calculates the order number correctly, so in this situation you will see order #2 and order #3.

This will also affect all strategies with Partial close or Individual SL/TP/BE, as well as others with Anti-SL, for example.

I really ask you to test this beta version and compare the results with the previous version you used.
If everything is fine, I will publish it on the channel and in the Market. Otherwise, we have an opportunity to fix or rollback something.

CommunityPower 2.58.4.b1.ex5

CommunityPower 2.58.4.b1.ex4

Avatar
1
Victor
Quote from Andrey Khatimlianskyi

Who wants to be the first to test this new feature?

I don't want to publish it on the channel, I want to test it with a small group of enthusiasts first and discuss the results.

So, now the EA remembers the first order of the series, and uses it for all the calculations, even when it is already closed by the Partial close or individual SL/BE/TS. This will affect all strategies that use any function that can close the first order earlier than the others. But this way of calculating is more correct, so I really want to keep it in the future versions.

Another improvement is the parameter "Keep the correct series" (in the end of the martingale section).

When it is false, EA works as worked before -- new order of the series gets the number = "number of opened orders + 1". For example, after partial close of orders #1 and #3, next martingale order will have number #2 and you will see two orders with #2.

When this parameter is true, the EA calculates the order number correctly, so in this situation you will see order #2 and order #3.

This will also affect all strategies with Partial close or Individual SL/TP/BE, as well as others with Anti-SL, for example.

I really ask you to test this beta version and compare the results with the previous version you used.
If everything is fine, I will publish it on the channel and in the Market. Otherwise, we have an opportunity to fix or rollback something.

CommunityPower 2.58.4.b1.ex5

CommunityPower 2.58.4.b1.ex4

Started testing.

Avatar
0
aramabdo

I have not yet understood the new improvements. It still opens positions of the same level after closing them and also did not keep the total lot size.

@Victor Have you tested it?

Avatar
0
Victor
Quote from aramabdo

I have not yet understood the new improvements. It still opens positions of the same level after closing them and also did not keep the total lot size.

@Victor Have you tested it?

I'm still testing and figuring it out. I like the improvement of the advisor. But there are questions. More on this later.

Avatar
0
aramabdo
Quote from Victor

I'm still testing and figuring it out. I like the improvement of the advisor. But there are questions. More on this later.

OK waiting your review

Avatar
0
Andrey Khatimlianskyi
Quote from aramabdo

I have not yet understood the new improvements. It still opens positions of the same level after closing them and also did not keep the total lot size.

@Victor Have you tested it?

The first step -- is to keep the correct lot sizes. And this is already done. Does it work for you?

And I'm not sure we need to disable re-opening of martingale trades. How are you going to recover, if trade #x has been closed by partial close and price went against you again?

Avatar
0
Andrey Khatimlianskyi

Another thing -- not all sets work good with the new way of remembering the first order.

So I'll move this functionality under the "Keep the correct series = true", and with the false value the EA will work as before.

Avatar
0
aramabdo
Quote from Andrey Khatimlianskyi

The first step -- is to keep the correct lot sizes. And this is already done. Does it work for you?

And I'm not sure we need to disable re-opening of martingale trades. How are you going to recover, if trade #x has been closed by partial close and price went against you again?

For keep the correct lot sizes.... Maybe I need to know how the CP calculate the correct lot sizes?

For "disable re-opening of martingale trades" It will be useful in some one-way scenarios.
Example:
I am building a one-way buying strategy on some indexes. I use Individual BE with a combination of Active Periods and some filters to recover when the price moves against the trend. Here it is useful not to open closed levels.

So I suggest the following parameter:

Disable re-opening of martingale trades (0 - disabled):

When it is at number 0 the CP will behave as before.
When it placed on number 1, it will open only once, and on number 2, it will open twice, and so on 3 and 4....

I hope the idea is clear. Thanks

Avatar
0
Andrey Khatimlianskyi
  • Started
Quote from aramabdo

For keep the correct lot sizes.... Maybe I need to know how the CP calculate the correct lot sizes?

For "disable re-opening of martingale trades" It will be useful in some one-way scenarios.
Example:
I am building a one-way buying strategy on some indexes. I use Individual BE with a combination of Active Periods and some filters to recover when the price moves against the trend. Here it is useful not to open closed levels.

So I suggest the following parameter:

Disable re-opening of martingale trades (0 - disabled):

When it is at number 0 the CP will behave as before.
When it placed on number 1, it will open only once, and on number 2, it will open twice, and so on 3 and 4....

I hope the idea is clear. Thanks

Your idea is clear and can be implemented with the new way of managing the orders.

I still don't understand how this can help with martingale, but let's try and see how it goes.