Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, Nymphodora), 1,012 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to debug .t6 files #469364
11/12/17 22:21
11/12/17 22:21
Joined: Nov 2017
Posts: 34
C
Cheulmen Offline OP
Newbie
Cheulmen  Offline OP
Newbie
C

Joined: Nov 2017
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:

//Timestamp,Open,High,Low,Close,Volume1,Volume2
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()
{
StartDate=2015;
BarPeriod=60;
PlotBars=100;
}

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?



Re: How to debug .t6 files [Re: Cheulmen] #469369
11/13/17 10:45
11/13/17 10:45
Joined: Nov 2017
Posts: 34
C
Cheulmen Offline OP
Newbie
Cheulmen  Offline OP
Newbie
C

Joined: Nov 2017
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;

Re: How to debug .t6 files [Re: Cheulmen] #469370
11/13/17 10:52
11/13/17 10:52
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
You can also display t6 files with the HistoryEditor tool on the download page.

Re: How to debug .t6 files [Re: jcl] #469373
11/13/17 11:32
11/13/17 11:32
Joined: Nov 2017
Posts: 34
C
Cheulmen Offline OP
Newbie
Cheulmen  Offline OP
Newbie
C

Joined: Nov 2017
Posts: 34
Oh! it is really a great tool, thanks!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1