Two things:

* You have limited historical data, courtesy of MT4/5, so it's probably smart to set StartDate and EndDate.
* Also consider sourcing historical data from other sources if Metatrader's supply is insufficient. For example, FXCM and Oanda give you free data via their demo accounts. Also, check the downloads page to see if it has the data you need.