Trailing Stop code (using the Metaquote class) New comment stargazer 2011.11.08 18:18 I have this code to buy:CTrade* trader=new CTrade; trader.SetExpertMagicNumber(eamagic); trader.Buy(Lot,ins,Ask(),stloss,tprofit); Once it buy I want to have a trailing stop loss? I saw the Trailing Stop classes, but I don't know how to implement them. Any code, lead, suggestion, help, advice, etc? ANY pls help for this EA Discussion of article "How to create bots for Telegram in MQL5" how to coding trailing stop ? New comment
I have this code to buy:
CTrade* trader=new CTrade; trader.SetExpertMagicNumber(eamagic); trader.Buy(Lot,ins,Ask(),stloss,tprofit);Once it buy I want to have a trailing stop loss? I saw the Trailing Stop classes, but I don't know how to implement them. Any code, lead, suggestion, help, advice, etc?