Gamestudio Links
Zorro Links
Newest Posts
Position Close not possible
by Paul_der_Zweite
12 minutes 3 seconds ago
by Paul_der_Zweite
56 minutes 58 seconds ago
New Zorro version 1.88
by jcl
Today at 09:35
Options trading questions
by jcl
Today at 09:17
About auto hide invisible entitiesl
by HellThunder
Today at 08:36
Bump with detail?
by Dooley
Today at 05:27
Windows permission issues
by HellThunder
Yesterday at 21:51
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
15 registered (ChrstphFr, Dalla, Ayumi, kvm, MatPed, cepturion, HellThunder, 4 invisible), 448 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
cepturion, Mon3y, vincitytaymo, just, XJohnny_Hoffmann
18057 Registered Users
Topic Options
Rate This Topic
#469364 - 11/12/17 23:21 How to debug .t6 files
Cheulmen Offline

Registered: 11/09/17
Posts: 34
I'm trying to transform a .csv into a .t6 file to read price data, but although .t6 file is generated (and it is around15Mb/year), the scripts always say something like: "Error 047, Not enough bars". It is like the .t6 file hasn't got inside it the .csv data or something like that :?

My .csv is like this one, with 1min ohlcvv data, from 2014-12-01 to 2017-10-20 :

2017-10-20 01:51:00,5705.25,5705.25,5705.24,5705.25,2.6457291,15094.527857
2017-10-20 01:52:00,5705.01,5705.01,5705.01,5705.01,2.23999467,12779.191992
2017-10-20 01:53:00,5705.01,5705.01,5701.01,5701.01,1.90665984,10877.267534

The script I'm using is CSVToHistory(), with the format:

string Format = "%Y-%m-%d %H%M%S,f3,f1,f2,f4,f5,f6";

To test it, with the following ultra-simple script:
function run()

I tried to Plot() a bar without success. Also, using Verbose=7 Zorro says:

"2 Bars 2015-01-08...2016-01-13"
"Error 047: Not enough bars (81 missing)"

How could I debug what's being wrong?

#469369 - 11/13/17 11:45 Re: How to debug .t6 files [Re: Cheulmen]
Cheulmen Offline

Registered: 11/09/17
Posts: 34
OK, I found the problem,, my .csv data was in reverse order. To find it, I read the t6 file using the T6 struct, printed the internal data, and the problem appeared:

typedef struct T6
DATE time; // timestamp of the end of the tick in UTC, OLE date/time format
float fHigh,fLow;
float fOpen,fClose;
float fVal,fVol; // additional data, like ask-bid spread, volume etc.
} T6;

#469370 - 11/13/17 11:52 Re: How to debug .t6 files [Re: Cheulmen]
jcl Online

Chief Engineer

Registered: 07/22/00
Posts: 26491
Loc: Frankfurt
You can also display t6 files with the HistoryEditor tool on the download page.

#469373 - 11/13/17 12:32 Re: How to debug .t6 files [Re: jcl]
Cheulmen Offline

Registered: 11/09/17
Posts: 34
Oh! it is really a great tool, thanks!


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

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