Same TP multiple trades
-
Hello, I'm having trouble getting the take profit of 1 or more trades set at the same price. The logic is this: when the condition is right, the expert opens a buy or sell trade. If the trade goes negative after x pips opens another trade and adds volume (not exactly martingale), then the TP of the new and parent trade is changed to a preset number at this point. The problem is that "the new TP" is not always the same for both trades, I don't know if it depends on the spread or the volatility of that moment, I think the problem is the "market price" setting, you cannot set to change the new take profit FROM the new trade opening price?

-
If you have another solution to do the same it is welcome
-
@cri760 You need a pink for each trade block above pink, not if trade, there is a pink modify stopes block.
-
@jstap The problem is the market price, the pink modify stops also uses it. Is there a way to open the second trade (with pips away) using the new TP from the opening price and not the market price? Sometimes it happens that the TP is not the same for both trades, probably because in that thousandth of a second the price moves and the block takes the new market price and not the opening price of the trade!
-
@cri760 When time to add new trade use the standard buy/sell block under pink.
-
@jstap Set as in the picture, everything already works correctly. If it opens at 1.10000 in buy, the price drops and opens at 1.09300 with another buy with the photo blocks. However, when the TP of both is changed (modify stops of trades) it is not always set at the same price. It happens 1-2 times out of 5. Do you know why?
-
Use TP at PRICE LEVEL, will do the trick
-
@cedietradermax What setting should i have to select next?

-
@cri760 you may try this

-
@cri760 Below pink should use in loop, if you want existing/closed trade info, all pink need a for each dark pink block above.
-
@paiz @jstap Unfortunately the trailing stop is not good because it continues to move the tp. It seems absurd to me that a TP cannot be set for all trades from the price of the new trade (opened thanks to pips away) and not from the market price, which can change in an instant, in fact the TP is not always the same for all trades opened. As you can see from the photo in this case the values are different, sometimes it changes even by 1 pips, it can happen that one of the trades takes the Tp and others don't, it doesn't have to happen.

-
@cri760 The add to volume block will use original TP etc, I only use trail under a if trade block, under pink will only work when true and only if a dark pink for each block is on top.
-
@jstap Since I can't find a solution, how should I follow my first screenshot posted to close the 2 trades when X pips profits from the second trade? (The old is negative and the new is positive)
-
@cri760 Never used group of trades but in single trades you have option to turn off moving tp, this block is also set to move sl back, if you use each trade then the SL for each trade will catch the last when distance permits.
-
@jstap In the same chart, when one operation is negative and one positive, how do I set up a closing of both with average profit?
-
@cri760 You need to use bucket of trades saving profit into a variable, in a separate tree have a condition block with variable => a chosen number, connected to a close trades block.
-
@jstap I also tried to use the average profit but by setting a negative value, the operations are closed immediately (as a loss), as the first operation is negative for ex. 50 pips opens the second trade and when it is +30 pips it should close both trades.
-
I didn't read the whole topic, so someone may already have given a good answer, but I will add mine just in case.
Those blue blocks, such as "Modify stops of trades" or the trailing stop block - they do the same action on multiple trades, but not exactly at the same time. This block would modify one trade, then after this is done it will go to modify the second trade... and do this while all are modified. But meanwhile the price is moving, which I think is the problem, because "Price relative to" refers to the current market price, which is Ask or Bid.
So I think the question is how to use more stable price. I think what you can do is to have some "double" variable, in which you can store the value of the price above the blue block, and then use that variable in the block.
Also, try this. I'm not exactly sure that it's working, but...

-
@Cri760 I see you were trying to figure out the same issue I'm trying to figure out right now. Have you found a way to change all older open TP trades to match the most recent one and increase volume to cover it all?
-
@Cri760 said in Same TP multiple trades:
@jstap I also tried to use the average profit but by setting a negative value, the operations are closed immediately (as a loss), as the first operation is negative for ex. 50 pips opens the second trade and when it is +30 pips it should close both trades.

Maybe you've already solved the problem, but for people who are having the same difficulty see, try this