How to activate native MQL5 Trailing Stop function from code?

 

Hello,

I would like to have some code to automatically activate the native MQL5 Trailing Stop function to my orders.

That being equivalent to right click an order, and set the number of Point under "Trailing Stop".

I was expecting this to be simple enough but I haven't found a way to do it. Is this achievable without writing my own full TS code?

 
Emerson Gomes: I would like to have some code to automatically activate the native MQL5 Trailing Stop function to my orders. That being equivalent to right click an order, and set the number of Point under "Trailing Stop". I was expecting this to be simple enough but I haven't found a way to do it. Is this achievable without writing my own full TS code?
Not possible to activate the terminal's trailing stop feature from MQL! You have to write your own trailing stop code for that. There are many different types and examples in the CodeBase.
Reason: