MT5 TrailingStop code

Vladimir Karputov  
Arvind Shah:

Hello MT5 Forum Members

Any one Know How to code Trailing Stop for Buy and Sell Trade code. If you can Please help me to Create Workable Trailing Stop Code. Thank's in Advance.

Example: Simple Trailing 2

Reason: