Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,467 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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