PO In Grid Same TP/SL For All Order
-
Hye guys, how to make Pending Order In Grid have same TP & SL for all orders? Try to use method as picture below and it work but only first PO has TP & SL, other PO does not have SL& TP. Also try to use SL/TP mode Custome Level ( same for all order but does not work as well, when run an error appear saying Invalid SL/TP Request. Please help.

-
@aisar Can you please share the link to your project?
-
- check order count
- loop through order count
within the loop change each sl to the one you want to have
not forget to re/set the sl before each loop so you set the correct sl
-
@l-andorrà here you go > https://fxdreema.com/shared/DL2rWWGbe
The idea is when I open buy/sell trade manually, the pending order buy stop/sell stop will automatically appear based on setting I set. Same TP and same SL for all orders including the one that I open manually. Also need a breakeven feauture, when first buy stop activated, the SL will move to the first entry. when second buy stop activated, SL move again and so on.
-
@aisar Then what you need is this:

-
@l-andorrà is this how to use it? already try this but it is not working. Invalid SL error appear.

-
@aisar No, you need to provide a specific price level, not a pips distance.
-
@l-andorrà but I want it to be in pips not price level. can it be done?
-
@aisar No, because the EA need to know the distance in pips...from which trade? You are opening many trades and which one is supposed to be the one to be considered?