How can I use trailing stop in MetaTrader5 using python?

 

Hi,

I want to activate trailing stop loss for my trades in MetaTrader 5 using Python, however, I cannot find any built-in function in MT5. Do you know what I must do?


Thanks

 
TrexTrader: I want to activate trailing stop loss for my trades in MetaTrader 5 using Python, however, I cannot find any built-in function in MT5. Do you know what I must do?

There are no built-in function in MQL5 or in python integration for trailing stop. You have to code it yourself.

There are however many examples of trailing stops implemented in MQL5 in the Codebase section of this site.

 
Thanks
Reason: