Download MetaTrader 5

Trailing Stop code (using the Metaquote class)

To add comments, please log in or register
Publish programs in Code Base. Improve your rating!
stargazer
152
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?

To add comments, please log in or register