Breakeven bucket
-
I should implement my EA in the way as follows:
- after I have reached a certain number of lots (via "add lots") a second instance must be activated:
- the bucket (created as above) is in gain?
- if I have it, the system must put a GLOBAL POSITIONING BreakEven (not single position) to a pip above the cumulative gain.
I tried to combine a lot of block but with little success.
Can someone help me?
Thank you.
-
Could you clarify if what you want it is a "Break Even" move or a "Trailing Stop"? Because the example you shared shows a "Trailing Stop" block not a "Break Even" one.
I am not sure if "... put a GLOBAL POSITIONING BreakEven (not single position) to a pip above the cumulative gain would work because might be the SL level that you want to achieve would be above the current price so you probably get an "Invalid SL request" from your broker. It could work if you want to move the SL to 1 pip below the "global gain" level.
In addition to that, if your project opens all the trades at the same time (same OpenPrice), the profit level will be the same for all of them. But if the OpenPrice is different from one trade to another one, the SL you want to reach could be unreacheable for some of them. There are other concerns to take into account but you can check the next options out:
If you want wait until a certain profit is reached before you move the SL to BE, this might work

If you want to move the SL to BE as soon as the bucket is in profit, this might work

-
@josecortesllobat Thank you very much, josecortesllobat. You are great!
I used the "Trailing stop" block because the BreakEven block only provides "each trade" functionality.My system does not foresee that the negotiations are all open at the same level but at different levels.
Now I will begin to evaluate all the options you have indicated to me and I will try to do some tests.
Can you send me the link of your blocks? I would be more facilitated in their study and use
Thanks again.
-
Bigape,
You could try like this:
-
As soon as your bucket reaches the desired profit, put a BE only on the newest trade
-
Use TAB "on Trade" to control what happens when a trade is opened/closed - you can define that when a trade is closed by STOP LOSS (that means, your BE is reached), all other trades should also be closed.
-
-
@rafaelgrecco
Many thanks -
Here you have