Hello, my name is Stephen and I am a C# programming, C++ programming, Metatrader, PHP software architecture expert with 5 years of experience in forex coding and other programming. I have done a lot of work on all the listed trading platforms, so I am confident that I can help you modify your EA to replace with opposite orders when your TP is hit.
I understand exactly what you are looking for in terms of functionality - specifically, the need for an algorithm that can detect when there is a high probability of an adverse outcome happening (such as when the price reaches a certain threshold), and then immediately swap out orders to prevent any losses from occurring.
I believe I am the perfect fit for this project due to my extensive knowledge and experience in trading bot development, Metatrader (MT4/5) programming, EA & indicators design, pinescript development and more. This wealth of expertise makes me well-positioned to deliver an outstanding conclusion to this project - one that meets all of your needs & expectations!