Problems with strategy tester

To add comments, please log in or register
Mindexperiment
88
Mindexperiment  

Hi,

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?

Simon Gniadkowski
17699
Simon Gniadkowski  
What does the last line in the Journal say ?
Mindexperiment
88
Mindexperiment  

the most relevant is


2011.01.06 18:47 The EA stopped beacuse of Stop Out

range 01/01/2011-31/03/2011


thanks for your time

Mindexperiment
88
Mindexperiment  

it seems to be a problem on the lot size.. if I use a lot of 0.01 all good


mmh..

William Roeder
19157
William Roeder  

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.

Jefferson Metha
1257
Jefferson Metha  
I think its more than just funds. When I run NZDUSD or EURUSD it closes for me EURUSD closes Nov 10 1987 on daily if i start tester on 9 nov 1987 it will stop out next bar if i go to earlier dates it stops out after opening 10 positions lot 0.01 with a loss of $5 from $10000
To add comments, please log in or register