Gamestudio Links
Zorro Links
Newest Posts
Zorro S for Oanda US
by SteveG. 06/06/20 17:49
The Black Book
by SteveG. 06/06/20 14:01
Indicator coding
by danatrader. 06/06/20 11:53
New AUM
by Aku_Aku. 06/06/20 10:10
Reading a TXT file on server
by Truth. 06/05/20 18:22
Oanda instruments
by Morris. 06/05/20 10:24
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (SteveG, Grat, AndrewAMD, kalmar), 464 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Frank_Shieh, PBSeven, Hardi01, Giuseppe, AdamWu
18461 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: 984
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 984
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: 984
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 984
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: 984
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 984
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,225
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,225
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,225
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,225
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