Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TedMar), 1,007 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem importing a new asset #461542
08/10/16 00:56
08/10/16 00:56
Joined: Aug 2016
Posts: 13
T
traderbot33 Offline OP
Newbie
traderbot33  Offline OP
Newbie
T

Joined: Aug 2016
Posts: 13
Hello guys,

I am trying to import an asset using Convert.c, but when I run it appears a message "Read 0 ticks" and the .bar file is generated with 0 Kb.

In the AssetsFix.csv I have included the asset with the following information:

Quote:
Name = WDOFUT
Price = 3190
Spread = 500
RollLong = 0
RollShort = 0
PIP = 0.001
PIPCost = 0.01
MarginCost = 0
Leverage = 10
LotAmount = 1
Commission = 0
Symbol


The asset data (exported from MT5) is (apparently) in the same format of the HistData.com. Below are some lines:

Quote:
2012.12.03,09:01,3293.920,3293.920,3293.920,3293.920,2
2012.12.03,09:02,3287.920,3287.920,3281.420,3281.420,2
2012.12.03,09:04,3285.920,3287.920,3283.920,3287.920,8
2012.12.03,09:05,3289.420,3289.420,3286.420,3286.420,2
2012.12.03,09:06,3288.420,3288.920,3288.420,3288.920,9
...


Any tips?

Re: Problem importing a new asset [Re: traderbot33] #461548
08/10/16 13:26
08/10/16 13:26
Joined: Aug 2016
Posts: 13
T
traderbot33 Offline OP
Newbie
traderbot33  Offline OP
Newbie
T

Joined: Aug 2016
Posts: 13
I have reversed the asset data (from new to old), but still getting the same result.

Re: Problem importing a new asset [Re: traderbot33] #461549
08/10/16 20:59
08/10/16 20:59
Joined: Aug 2016
Posts: 13
T
traderbot33 Offline OP
Newbie
traderbot33  Offline OP
Newbie
T

Joined: Aug 2016
Posts: 13
When running Zorro in diagnose mode, the following log file is generated:


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

Re: Problem importing a new asset [Re: traderbot33] #461558
08/11/16 07:37
08/11/16 07:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
For importing data, look into the example code in convert.c, and adapt it to your data format. It does certainly not look like Histdata. Compare the fields and modify the sscanf call accordingly - more is probably not needed. If you still don't succeed despite trying hard, post here again and I'll help.

Re: Problem importing a new asset [Re: jcl] #461566
08/11/16 11:17
08/11/16 11:17
Joined: Aug 2016
Posts: 13
T
traderbot33 Offline OP
Newbie
traderbot33  Offline OP
Newbie
T

Joined: Aug 2016
Posts: 13
OK, I'll try to do this and I'll post the result here.
Thanks

Last edited by traderbot33; 08/11/16 11:17.
Re: Problem importing a new asset [Re: traderbot33] #461611
08/13/16 14:23
08/13/16 14:23
Joined: Aug 2016
Posts: 13
T
traderbot33 Offline OP
Newbie
traderbot33  Offline OP
Newbie
T

Joined: Aug 2016
Posts: 13
Adapting sscanf did the trick.

Problem now that I am getting very strange results with my asset when running the scripts of the tutorial. The reason maybe that the prices of my asset are not adjusted (there are several values out of the tick size).

Now, i am trying to find out how to adjust them.

Last edited by traderbot33; 08/13/16 21:00.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1