Problem importing a new asset

Posted By: traderbot33

Problem importing a new asset - 08/10/16 00:56

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?
Posted By: traderbot33

Re: Problem importing a new asset - 08/10/16 13:26

I have reversed the asset data (from new to old), but still getting the same result.
Posted By: traderbot33

Re: Problem importing a new asset - 08/10/16 20:59

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
Posted By: jcl

Re: Problem importing a new asset - 08/11/16 07:37

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.
Posted By: traderbot33

Re: Problem importing a new asset - 08/11/16 11:17

OK, I'll try to do this and I'll post the result here.
Thanks
Posted By: traderbot33

Re: Problem importing a new asset - 08/13/16 14:23

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.
© 2024 lite-C Forums