@mhmd
what are these blocks supposed to do

@daraseunmi
Your program is ok so far, or what do you mean exactly?

Hi Paul, yes this is working fine now. I always use the function. If you always want the top blocks to start with a "ten's"(10; 20; ....), you have to replace them, but the logical order is preserved.
You need to save the EA and open it with MT (IDE) editor, then compile and the error will show, then you can find the reason quickly too.
@RGoo
Slowly again to understand better. This WAS the original, ........................................................................................................................................................................ I am the author, not the admin.
@ZakTrading
Slowly again to understand better. This is the original, I am writing this twice here to make it clear how it works. In the second text, I can replace some passages with ... because I am the author, not the admin.
Your condition means "EXACTLY the same" which may not be the case for the values the broker delivers at the same time. What do you want to achieve with the block? So when should the condition be true?
You only need to press the 3 dots and then you can change your post, you can then delete everything and write e.g. "deleted" there. But only you as the author of the message can do that.
@Pheaktra-Capo
You have to use your own variables and constants for this. And you have to write this block yourself to understand what it does. Believe me, a copy and paste would not work.
@Pheaktra-Capo
Yes, the issue is a bit more complicated than you think. Of course, where your BEP is not only depends on the price and the volume, but also on the relative value of the positions among each other. You bought your selling positions all over the buying positions!!!
Here's another tip that you probably already know. If your positions are very close together and the sell volume only slightly exceeds the buy volume, the result is even a negative value. You can use the following example to help. If you hold the same volume of long and short positions, you have a hedg (profit or loss is frozen and stays the same no matter how the price moves). If the buy volume is only slightly higher than the sell volume, you need a huge price increase to reach your BEP because the sell position is also getting bigger. If you use the formula, you also have to insert a block with the function for the hedg. This can look something like the picture.


@mlumbreras
Try this out, it should work.

https://fxdreema.com/shared/Mflx9sUWc
@mlumbreras
This can actually only be due to the expiration mode. You have to check that. I once inserted a control block for you, you can place it anywhere and you can then see whether the block is currently being run through and how often.

@mlumbreras
Interesting theory. I changed your AE something. You only need the "Pass" block if a block would otherwise stand alone or for special other applications. The "OpB" block is also not necessary, since something is only executed after an event, and "for each trade" is also not required , because the search is for the trade that JUST was executed. Maybe that will help you first, I didn't fully understand your description of how the EA works, but I think you need an additional variable, maybe.
Hello @Ben-Romewel , the forum is intended for exchanging ideas and giving hints, if someone else programs an EA for you, that doesn't really help you, you have to make yourself independent by acquiring your own knowledge, otherwise you'll always end up in a dead end.