Hello, you can find the file here: https://www.mql5.com/en/code/11649 or download it below
It allows for setting both visible TP (Take Profit) for the broker and hidden TP. However, it currently assigns a different TP for each trade opened at different times with a fixed TP. What I need is a collective TP that will be the same for all trades of the same symbol. Essentially, it should calculate the average price of all trades with the same symbol and apply the TP to that, so each trade of the same symbol will share the same TP. Thanks!
Attached File(s)
It allows for setting both visible TP (Take Profit) for the broker and hidden TP. However, it currently assigns a different TP for each trade opened at different times with a fixed TP. What I need is a collective TP that will be the same for all trades of the same symbol. Essentially, it should calculate the average price of all trades with the same symbol and apply the TP to that, so each trade of the same symbol will share the same TP. Thanks!