Gamestudio Links
Zorro Links
Newest Posts
rMomentum always returns 0 when checking for peak/valley
by jcl
Today at 17:38
a little help here?
by 3run
Today at 16:38
How to set a pair trading order right
by jcl
Today at 11:46
Dual Momentum Algorithm - The way Zorro would have done it
by Hredot
Today at 05:21
HIgh FRequency Trading Script -- Highly Profitable
by Yosh
Yesterday at 19:27
Linear Regression in objective function
by jcl
11/22/17 15:40
MT4 vs Zorro
by pascalx
11/22/17 14:00
AUM Magazine
Latest Screens
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
14 registered (Lobo, Hredot, painkiller, 3run, alibaba, Kartoffel, FLD, RealSerious3D, Jerome8911, 1 invisible), 169 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
ech87, Lobo, Andy60, AzzoCorp, franzz
17813 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: 19
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: 19
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: 25939
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: 19
Oh! it is really a great tool, thanks!


Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

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