"Close Trade" block affects the betting sequence.
-
Hi,
How to make the "Close Trade" block to not affect my betting sequence in the "Buy now" block?

"Sequence on loss" inputs are being multiplied by "Base volume". Every time you take a loss, you move to the next value in the sequence - I need the EA to proceed to the next input in the sequence only when the trade closes on the "Stop Loss" and not with the "Close Trade" block.
Does someone know a solution to this?
Thanks.
-
Doesn't it happen even when a trade is closed at loss?
-
@l-andorrà
I need the EA to proceed to the next input in the sequence only when the trade closes on the "Stop Loss" and not with the "Close Trade" block. In other words, I need the EA to not count the "Close Trade" as a loss, so it can't affect the betting sequence. -
Can you please share your project instead of just a screenshot?
-
-
I'm afraid it will count it as a loss if the trade is closed as a loss, no matter how. In order to do what you want you will need a more complex structure of variables distinguishing closing trade by type in order to filter the next lot size.
-
@l-andorrà I was wondering how complicated that would be to make it not count the "Close trade" block as a loss. Would appreciate if someone could show that setup in an example.
-
The first think to do is NOT using that money management option on the buy/sell block. That means you will have to create at least a variable in which you will store info about those closed trades and another one to store the closed ones after hitting the SL.
Than you will need a calculation variable to identify the next lot size depending on the info stored on both previous variables. It is not necessarily difficult if you can work with variables easily. Is that your case?
-
@l-andorrà I can use variables and constants to some degree (storing information and using across the whole project), but definitely not "easily". If it's easy for you, or someone else, I would appreciate the help.