Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (rht, Martin_HH, EW_bytes), 11,635 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
CSVToHistory.c #474157
09/25/18 16:32
09/25/18 16:32
Joined: Jun 2018
Posts: 16
P
Paul_der_Zweite Offline OP
Newbie
Paul_der_Zweite  Offline OP
Newbie
P

Joined: Jun 2018
Posts: 16
The download of the Broker history doesn't work correctly with the download script. I now download the history in Metatrader 5 as a csv file from the broker (min. 20 years available) and convert (and arrange) it into t6 files using CSVtoHistory.c.

How can I address MORE than 6 columns of the csv file in the script (f1 - f6)?
f7 and above is not accepted.

Thanks in advance.

Re: CSVToHistory.c [Re: Paul_der_Zweite] #474159
09/25/18 18:42
09/25/18 18:42
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
As you said yourself, the script is for converting data into t6 files.
A t6 struct only contains 6 fields plus a date, so by definition you cannot add any more than six fields. You you want a dataset that holds other custom data, look at the data functions here http://zorro-project.com/manual/en/data.htm

Re: CSVToHistory.c [Re: Dalla] #474168
09/26/18 08:43
09/26/18 08:43
Joined: Jun 2018
Posts: 16
P
Paul_der_Zweite Offline OP
Newbie
Paul_der_Zweite  Offline OP
Newbie
P

Joined: Jun 2018
Posts: 16
Okay, my mistake.

My source file has 9 columns. The target file has 6 columns excluding Date. I had forgotten a tab to filter out columns of the source file (in this case <VOL>).

Code:
//<DATE> <TIME> <OPEN> <HIGH> <LOW> <CLOSE> <TICKVOL> <VOL> <SPREAD>
// STK line format "2018.01.01 23:00:00 1.20098 1.20103 1.20086 1.20086 12 0 21"
string Format = "%Y.%m.%d %H:%M:%S f3 f1 f2 f4 f6  < 2Tabs > f5";



Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1