I have some problems with my strategy tester.. I don't know why every time I run the tester only few day is ccalculated.
For example: I set the usage from 01/01/2011 to 31/12/2011 the tester calculate only 01/01/11-05/01/11
or: I set usage from 01/01/2012 to 31/03/2012 the tester calculate only 01/01/2012-06/01/2012
I have try everything but no luck.. Any idea?
the most relevant is
2011.01.06 18:47 The EA stopped beacuse of Stop Out
thanks for your time
it seems to be a problem on the lot size.. if I use a lot of 0.01 all good
Not only to you need enough free margin to open an order, as the order goes against you, equity drops and by the same amount free margin.
Once you reach zero free margin you get a margin call and the broker closes the order. In the tester that's a stop out.
If you have multiple open orders, then you must have enough free margin for all orders going to the most adverse excursion (MAE) i.e. the stops.
My code impediments this.