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 (AndrewAMD, Nymphodora), 972 guests, and 8 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
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