Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by NeoDumont
Today at 04:24
New Aum and few things
by George
Yesterday at 20:47
Transfer free license to different device?
by AndrewAMD
Yesterday at 20:14
read MT4 tradehistory html to create tradereport in Zorro
Yesterday at 13:45
Oanda - Darwinex data syncronisation
by MatPed
06/16/18 17:13
Genetic Algorithm
by AndrewAMD
06/16/18 06:09
by Firoball
06/15/18 21:55
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
7 registered (mk_1, jenGs, Superku, alibaba, AndrewAMD, 20BN, 1 invisible), 475 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Raisinbran, Grodt, drack, Paul_der_Zweite, madeinquant
17981 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 Offline

Chief Engineer

Registered: 07/22/00
Posts: 26363
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)