Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, Quad), 935 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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