How to move the TP when open orders move in negative
-
Hi Guys..
Could someone please look at my problem and give advice. If I have several trades opened in negative, I would like the TP to move to the average TP of all opened sell orders or vica versa buy orders. Roar gave me a friendly hand and create the following blocks but he did not have time to test it, but there is problems..
Firstly, The TP does not move
Secondly, the code is based on random lots which I do not want
https://fxdreema.com/shared/ucZlZvYcc
Any help would be greatly appreciated as this problem is way beyond me
Thank you in advance!