2 registered members (RealSerious3D, rvl),
1,187
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
download does not work anymore
#426954
07/31/13 15:36
07/31/13 15:36
|
Joined: Nov 2012
Posts: 126
blaub4r
OP
Member
|
OP
Member
Joined: Nov 2012
Posts: 126
|
When I run download nothing really happens (Zorro does not even try to connect to the broker, which it used to do). However, I cannot remember having changed anything important aside from the asset list. Here is the script:
// Download Assets.dta and update price history of a certain asset (or all)
// comment this in and click [Trade] for updating Assets.dta #define LOAD_ALL
function run() { // set date and click [Test] for downloading price history (not with MT4) StartDate = 2009; EndDate = 2013; string name = "EUR/CHF"; #ifdef LOAD_ALL while(name = loop("AUD/USD","AUD/JPY","EUR/CAD","EUR/JPY","EUR/GBP","EUR/USD","EUR/CHF","GBP/USD","GER30","NAS100", "SPX500","UK100","UKOil","US30","USD/CAD","USD/CHF","USD/JPY", "USOil","XAG/USD","XAU/USD","NZD/USD")) #endif { if(is(TESTMODE)) loadHistory(name,1); if(is(TRADEMODE)) asset(name); } }
|
|
|
Re: download does not work anymore
[Re: blaub4r]
#426959
07/31/13 16:13
07/31/13 16:13
|
Joined: Jun 2013
Posts: 1,609
DdlV
Serious User
|
Serious User
Joined: Jun 2013
Posts: 1,609
|
Hi blaub4r, Yeah, that caught me too. Zorro stores prices in files by year. For years older than the current year, if the file exists Zorro assumes that it's good and moves on. For the current year, Zorro will add new prices to an existing file, but it's unclear to me under exactly what conditions. Sometimes it did it for me, sometimes it didn't. It would make sense to me for it to add if the file modified date is older than EndDate or current time - BarPeriod, but I haven't spent the time to test that. And, of course, Zorro only connects to the Broker when it needs to. HTH.
|
|
|
|