Download MetaTrader 5

Experts: Order Management for EA development - Beta 1

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
183641
MetaQuotes Software Corp.  

Order Management for EA development - Beta 1:

this is ordersend management expert advisor script.

Author: ardiansyah

ardiansyah
6
ardiansyah  

PLease comment or send message if your have problem ... 

MQL4 Comments
16319
MQL4 Comments  

hi ardi,

this is a very good job.

Can you change the lotsize=5 . Can you put 2% of AccountBalance() for every new open position.

lotsize=5 is all the time fixed, but instead of 5 lots you can put 2% of total money (AccountBalance() ).

After You do this, I have to ask You about something else .

God Bless You

ardiansyah
6
ardiansyah  

i choose to calculate freemargin() for lotsize because of risk management. but you can change the code using AccountBalance() based :

change:

lots = NormalizeDouble(AccountFreeMargin()/lotsize/1000,LotsDigit);

with :

lots = NormalizeDouble(AccountBalance()/lotsize/1000,LotsDigit);

if you use percent based lotsize :

lots = NormalizeDouble(AccountBalance()*lotsize/100/1000,LotsDigit);

remember to change LotSize value

please use freemargin to calculate opening multiple position.... .. remember This juts Beta development .. use it for virtual account... i recomended that you learn carefully the code before you use it for real account  ...

To add comments, please log in or register