Strategytester limitation for MA period >1000

 

Hello all

The following code returns only 0 for MA period > 1000 in the tester, but not on a demo account.  Is that a known limitation?

   for(int i=1;i<10000;i++)
   {
      Print(StringConcatenate("MA",i,": ", iMA(NULL,0,i,0,MODE_SMA,PRICE_CLOSE,1)));
   }  

tester:

19:38:51 2012.11.23 00:00  test EURUSD,M5: MA997: 1.2817
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA998: 1.2817
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA999: 1.2817
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA1000: 1.2817
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA1001: 0
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA1002: 0
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA1003: 0
19:38:51 2012.11.23 00:00  test EURUSD,M5: MA1004: 0 

demo:

19:11:36 test EURUSD,M5: MA997: 1.2891
19:11:36 test EURUSD,M5: MA998: 1.2891
19:11:36 test EURUSD,M5: MA999: 1.2891
19:11:36 test EURUSD,M5: MA1000: 1.2891
19:11:36 test EURUSD,M5: MA1001: 1.289
19:11:36 test EURUSD,M5: MA1002: 1.289
19:11:36 test EURUSD,M5: MA1003: 1.289
19:11:36 test EURUSD,M5: MA1004: 1.289
...
...
...
19:11:41 test EURUSD,M5: MA9997: 1.2888
19:11:41 test EURUSD,M5: MA9998: 1.2888
19:11:41 test EURUSD,M5: MA9999: 1.2888

Are any limitation for the strategytester documented somewhere? 

Thanks 

 
kronin:
The following code returns only 0 for MA period > 1000 in the tester, but not on a demo account.  Is that a known limitation?
Are any limitation for the strategytester documented somewhere? 

 

The tester only gives 1000 history bars (100 if you have no downloaded history.) Let it run and on the next bar 1001 will work...
 

i have searched the whole web and YES, there is a limitation in the strategy tester!
try to "Alert(bars); " in your init of your EA and you will get 1000 or 1001 or 1002.

also my question is:

how can i enlarge this 1000 bar limitation?!


(and yes, all my historical data is updated and more than years in the past) 

 
mqllie:

i have searched the whole web and YES, there is a limitation in the strategy tester!
try to "Alert(bars); " in your init of your EA and you will get 1000 or 1001 or 1002.

also my question is:

how can i enlarge this 1000 bar limitation?!


(and yes, all my historical data is updated and more than years in the past) 

You can't,  just get your EA to count the number of additional bars you need before it starts trying to find trades.
 
But my EA needs every tick/bar the information one month ago :-(
 
  1. But my EA needs bar information one minute in the future :-)
  2. If you do not have history, you do not have history. What you need is irrelevant.
  3. Consider using a smaller period on a larger time frame. A 1000 period M5 MA is about a 333 period M15 MA and about a 83 period H1 Ma.
 
mqllie:
But my EA needs every tick/bar the information one month ago :-(
Start the Strategy tester run from an earlier date and get your EA to wait . . .   if you don't have the data then get it.
 

@whroeder: idiot ^^ it's just a config value that has to change, but nobody knows where it is located. it's no magic like looking into the future.

@raptoruk: yes, that idea was in my mind too. it's the solution when i give it up search config and exe files with hex editor ;-) 

Reason: