I want to modify TP to open price after position lost, Any suggestion?

 

Dear friends, I'm looking for coding EA with the code to modify TP to open price after position lost, Any suggestion? For example, I open order and then I lost 5$ and I open new order so I would like to modify the previous order the current take profit to the open price. 

Any advice would be much appreciated, 

 
You have only four choices:
  1. Search for it.
  2. Beg at
  3. MT4: Learn to code it.
    MT5: Begin learning to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
  4. or pay (Freelance) someone to code it.
              Hiring to write script - General - MQL5 programming forum
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help
 
William Roeder:
You have only four choices:
  1. Search for it.
  2. Beg at
  3. MT4: Learn to code it.
    MT5: Begin learning to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
  4. or pay (Freelance) someone to code it.
              Hiring to write script - General - MQL5 programming forum
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help

Thank you for your kind advices. Much appreciated, 

Reason: