Question re coding for multiple ea instances

hayseed

Master Trader
Jul 27, 2010
1,046
262
149
usa
lots

hey dave..... the answer would probably depend on the reason for needing the account allocated..... several reasons come to mind, one would involve the lot size.......

as example,

if each ea using some or the same code set the lot size, and it is using accountfreemargin() or something similar, you can replace that value with one of your own choosing.....

Code:
   lot=NormalizeDouble(AccountFreeMargin()*MaximumRisk/1000.0,decimalPlaces);

you would replace AccountFreeMargin() with your predetermined amount...... doing so will reduce the free margin available to each ea ......h