Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Volkovstudio, 7th_zorro, Aku_Aku), 336 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Script Test gives error 055 - No History #479464
03/31/20 11:25
03/31/20 11:25
Joined: Mar 2020
Posts: 9
Krugersdorp
C
Cobus Offline OP
Newbie
Cobus  Offline OP
Newbie
C

Joined: Mar 2020
Posts: 9
Krugersdorp
Hi all,

I'm trying to run a very simple script but Zorro can't find the history data. I've spcecified 'EUR/USD" and a StartDate and EndDate but still nothing.
It says it's looking for 2020 data?

Any help please?

Re: Script Test gives error 055 - No History [Re: Cobus] #479467
03/31/20 13:12
03/31/20 13:12
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
Well, do you have historical data? What is the date range of the historical data you have, and what did you set for StartDate and EndDate?

Re: Script Test gives error 055 - No History [Re: AndrewAMD] #479470
03/31/20 15:51
03/31/20 15:51
Joined: Mar 2020
Posts: 9
Krugersdorp
C
Cobus Offline OP
Newbie
Cobus  Offline OP
Newbie
C

Joined: Mar 2020
Posts: 9
Krugersdorp
Thank you for the reply AndrewAMD. I only have the data that came with the installation.
I have now downloaded the 1GB data file with the 28 forex pairs from 2010 onwards.

If I don't specify a start and date, only the asset, I see the output says "2010-2015"... where does that come from? The .t6 files run from 2005 to 2019.

Re: Script Test gives error 055 - No History [Re: Cobus] #479471
03/31/20 16:19
03/31/20 16:19
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
Please post your script.

Re: Script Test gives error 055 - No History [Re: AndrewAMD] #479484
04/02/20 11:45
04/02/20 11:45
Joined: Mar 2020
Posts: 9
Krugersdorp
C
Cobus Offline OP
Newbie
Cobus  Offline OP
Newbie
C

Joined: Mar 2020
Posts: 9
Krugersdorp
Code
function run()
{
  asset("EUR/USD");
  BarPeriod=60;
  var* Price = series(price()); //not sure if I need this here
  StartDate=2010;
  EndDate=2020;
  vars dim=series(MinusDI(8));
  vars dip=series(PlusDI(8));
  if (crossOver(dip,dim)) enterLong();
  if (crossOver(dim,dip)) enterShort();
}

Re: Script Test gives error 055 - No History [Re: Cobus] #479485
04/02/20 11:52
04/02/20 11:52
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
If you know your data ends at 2019, why are you backtesting up to 2020?

Re: Script Test gives error 055 - No History [Re: AndrewAMD] #479487
04/02/20 11:57
04/02/20 11:57
Joined: Mar 2020
Posts: 9
Krugersdorp
C
Cobus Offline OP
Newbie
Cobus  Offline OP
Newbie
C

Joined: Mar 2020
Posts: 9
Krugersdorp
The data pack I downloaded from Zorro has data to 2020 so I changed to that.
I attached the Zorro output. It doesn't give me that particular error but the date is still wrong and I don't have any trade result.

Attached Files Annotation 2020-04-02 135212.png
Re: Script Test gives error 055 - No History [Re: Cobus] #479488
04/02/20 12:28
04/02/20 12:28
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Because you got the settings the wrong way around. First set the bar and test periods, then you can load the asset for that period. Not the other way around.

https://manual.zorro-project.com/asset.htm

Re: Script Test gives error 055 - No History [Re: jcl] #479490
04/02/20 12:47
04/02/20 12:47
Joined: Mar 2020
Posts: 9
Krugersdorp
C
Cobus Offline OP
Newbie
Cobus  Offline OP
Newbie
C

Joined: Mar 2020
Posts: 9
Krugersdorp
Thank you jcl. I changed it the other way around but still no happiness here.
Here is my code. Zorro still runs the test from 2015..2020 and the log doesn't show any trades.
Code
function run()
{
  set(LOGFILE);
  BarPeriod=60;
  StartDate=20100101;
  EndDate=20191231;
  vars dim=series(MinusDI(8));
  vars dip=series(PlusDI(8));
  Stop=PIP*50;
  asset("EUR/USD");
  
  if (crossOver(dip,dim)) enterLong();
  if (crossOver(dim,dip)) enterShort();
  
	
	}

Re: Script Test gives error 055 - No History [Re: Cobus] #479491
04/02/20 12:53
04/02/20 12:53
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Well, it's now another wrong way around. The order of commands matters in programming. Here's how it should probably look:

Code
function run()
{
  BarPeriod=60;
  StartDate=2010;
  EndDate=2020;

  asset("EUR/USD");
  vars dim=series(MinusDI(8));
  vars dip=series(PlusDI(8));
  Stop=PIP*50;
  if (crossOver(dip,dim)) enterLong();
  if (crossOver(dim,dip)) enterShort();
}

Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1