Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Error in Convert.c #459922
06/12/16 09:48
06/12/16 09:48
Joined: Jun 2016
Posts: 9
Germany, BW
MattY Offline OP
Newbie
MattY  Offline OP
Newbie

Joined: Jun 2016
Posts: 9
Germany, BW
Hi,

I am trying to convert some of my own data to Zorro. I am using Zorro 1.44.1 on a Win10 64-bit machine.

I started to test the conversion with the "Convert.c" script. Therefore I downloaded the "DAT_ASCII_EURUSD_M1_2015.csv" from histdata.com. This is the format:

20150101 130000;1.209650;1.209770;1.209620;1.209620;0
20150101 130100;1.209630;1.209680;1.209620;1.209620;0

When I click on "test" I always get this error:

Zorro 1.44.1 Trading Automaton
Made with Gamestudio by oP group 2015


Convert compiling..........
Error in 'line 31:
syntax error
< DATE ConvertTime(int Year,int Month,int Day,int Hour,int Minute,int Second)
>.

I have not changed anything in the convert scipt. I also tried with other formats and adapted code in the readTick function. But always the same error. Even when I delete or rename the .csv file in the history folder the error remains. Is this a bug?

Please advise.

Thanks, Matt

Re: Error in Convert.c [Re: MattY] #460272
06/22/16 16:58
06/22/16 16:58
Joined: Jun 2016
Posts: 29
panz Offline
Newbie
panz  Offline
Newbie

Joined: Jun 2016
Posts: 29
I found the bug in "Convert.c": "Day" is a reserved name in Zorro, but "Convert.c" used it as the input parameter of ConvertTime() and as a general variable name in various other places. To solve this problem, just change all the variables named "Day" to a different name that is not a reserved name, e.g. "aDay".

I have attached the modified "Convert.c" that compiles fine.

Attached Files
Convert.c (6 downloads)
Re: Error in Convert.c [Re: panz] #460336
06/25/16 15:05
06/25/16 15:05
Joined: Jun 2016
Posts: 9
Germany, BW
MattY Offline OP
Newbie
MattY  Offline OP
Newbie

Joined: Jun 2016
Posts: 9
Germany, BW
Hi panz, thank you very much for your help.

The reserved "Day" had a different color in the editor. But I couldn't figure it out. Now it's working fine.

All the best
Matt


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1