mql5, trailling_stop, break_event, script, EA

Good evening,
I have a problem, I have a script on mt5 that works very well (a simple Buystop and Sellstop), I would like to write an EA (A trailing stop) that will follow the position once triggered. I have already tried but the EA never triggers. 
Your help will be very useful, 
Thank you
  • Please don't post randomly in any section. Your topic has been moved to the section: Expert Advisors and Automated Trading
  • If you need help with your code, then please show your attempt. Use the CODE button (Alt-S) when inserting code.
  • Also, there should be several examples of similar trailing-stop EAs in the CodeBase. Study them and adapt them to your requirements.