Use moving average as trailing stop syntex in mql4

 
guiding me how to use moving as a trail stop
 
  1. When requesting help with coding, you should post your attempt at coding it yourself. We will most likely not write it for you, but only guide you with your own code.
  2. There are are many examples of similar code in the CodeBase. So search for examples there and study them to improve your knowledge and coding skill.
  3. If you don't have the time to research and learn this, then consider hiring someone in the Freelance section to code it for you.
 
Nima-nb: guiding me how to use moving as a trail stop
  1. Select the order, read the moving average. For a buy: if the MA is above the maximum of the open price or current SL by at least a point, move the SL there.

  2. 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)