Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Converting Historical Data from some currency to .bar file #462217
09/14/16 12:09
09/14/16 12:09
Joined: Sep 2016
Posts: 1
Q
QuantAlpha Offline OP
Guest
QuantAlpha  Offline OP
Guest
Q

Joined: Sep 2016
Posts: 1
Hi,

I am trying to convert data that has this format

20090304 090000,51.86,52.18,51.86,52.115
20090304 100000,52.115,52.135,52.08,52.08
20090304 110000,52.07,52.08,51.995,52.05
20090304 120000,52.05,52.05,51.86,51.8675
20090304 130000,51.865,51.945,51.845,51.9275

This is basically

Date(YYYYMMDD time) , Open , High , Low , Close

I am using the standard script of convert.c to convert this to a .bar file

I am getting this error after running Zorro in diagnostic mode.

Open: History\USDINR_2009.csv rb
Open: History\USDINR_2009.bar wb
Read 0 ticks
Raus
Neural
Close files
xxx



Zorro Version : 1.46
Windows 10 64 bit

Re: Converting Historical Data from some currency to .bar file [Re: QuantAlpha] #462220
09/14/16 13:48
09/14/16 13:48
Joined: Jul 2000
Posts: 27,947
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,947
Frankfurt
This looks similar to the HISTDATA format, but has commas instead of semicolons. You must modify the sscanf line in convert.c for reading this format. I think replacing ; with , should be enough.


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