This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

info about Expert Advisors


Back to topics list
avatar
1
mar65 2009.12.23 18:36 

Hello

I have an Expert Advisor and I would like to know if is possible add a condition.I would like to know if I can change the lots of contract.My EA will start to play at 1,1 lots if the trade is in gain,next trade will be at 1,1 lots,if trade lost,next trade will be at 1,2 lots.In few words My EA will add a 0,1 lots at every trade lost and subtract 0,1 lots at every trade gained.

Can somebody tell me if its possible and maybe send me the code of that.

avatar
80
cloudbreaker 2010.01.02 14:54 

Yes, this is easily possible. MQL is a fully featured and flexible programming language and provides the possibility for you to write pretty much any trading strategy and money management strategy you like.


CB

Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets