Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by txesmi. 09/14/19 15:44
file_write var array ?
by jcl. 09/14/19 08:31
Shift on MA
by Fred7. 09/14/19 07:37
Smaller Zorro GUI for Windows XP
by Petra. 09/13/19 17:31
Options t8 format question
by jcl. 09/13/19 12:15
import pandas from python for deep learning
by anonymous69. 09/12/19 14:40
script mt5
by anonymous69. 09/12/19 12:11
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (3run, Dalla, bondo1, 2 invisible), 616 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
web20tpo, tarekhazem, Juanjo, Fred7, saulius
18288 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: export asset to .txt file [Re: SBGuy] #477087
05/16/19 04:44
05/16/19 04:44
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
First row in .csv file is 0 price. I don not understand it.

Re: export asset to .txt file [Re: tuuPaul] #477089
05/16/19 06:55
05/16/19 06:55
Joined: Sep 2003
Posts: 854
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 854
You must enter first the start and end dates and then the asset and not the other way around. Thd error messages are all explained in the manual.

Re: export asset to .txt file [Re: Spirit] #477090
05/16/19 07:01
05/16/19 07:01
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
i followed your instruction but there is nothing change.

Re: export asset to .txt file [Re: tuuPaul] #477115
05/17/19 14:21
05/17/19 14:21
Joined: Dec 2014
Posts: 133
Germany
sdh309795gaas Offline
Member
sdh309795gaas  Offline
Member

Joined: Dec 2014
Posts: 133
Germany
I would do it like this:

Code:
WriteFormat = "n%.5f,%.5f,%.5f,%.5f,%.5f,%.5f,%.5f,%.5f"
//this needs to match your variables!
//each %.5f means a var with 5 Digits, %d would mean an integer

sprintf(FileName,"Data\blabla%s.csv",strx(Asset,"/","")); // remove slash from forex pairs

if(is(INITRUN)
{
file_delete(FileName); //if you want to delete old files
file_write(FileName,"this,that,somethingelse,....",0);    //Header
}
file_append(FileName,strf(WriteFormat,v1,v2,v3...);
//v1, v2 are the variables you want to write


Page 2 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1