Trailing pending orders

 

Hello, please anyone help me write code in Mql4 for trailing pending orders.  For instance when I open a buy position,  I want my stop loss to be the same as my pending sell stop and trail them as market moves in an uptrend. Same for opposite

Thanks

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Order Properties - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Save  or get (https://docs.mql4.com/trading/orderstotal) the price of that pending sell stop and open a buy with the stop of that saved price.
OrdersTotal - Trade Functions - MQL4 Reference
OrdersTotal - Trade Functions - MQL4 Reference
  • docs.mql4.com
OrdersTotal - Trade Functions - MQL4 Reference
 
5155001: please anyone help me write code in Mql4 for 

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
          No free help (2017)

 
Carl Schreiber #:
Save  or get (https://docs.mql4.com/trading/orderstotal) the price of that pending sell stop and open a buy with the stop of that saved price.
Thanks man