Gamestudio Links
Zorro Links
Newest Posts
Specular Shader
by Dooley
Yesterday at 18:17
is 3dgs byDirextX or Opengl?
by Dooley
Yesterday at 18:09
Tensorflow and Python 32 bit
by jcl
Yesterday at 13:28
New Zorro version 2.12
by jcl
05/21/19 17:23
Mixed frequency history (M1+D)
by jcl
05/20/19 12:21
This is my fault-tolerant ATR indicator for you
by OptimusPrime
05/18/19 16:35
missing trade variables
by AndrewAMD
05/18/19 12:37
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
5 registered (kvm, Michael_Schwarz, Ayumi, Dooley, 1 invisible), 519 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Newest Members
Reza65, Pritamchakra, h4h4rd, ccm, Pippo
18224 Registered Users
Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#477087 - 05/16/19 06:44 Re: export asset to .txt file [Re: SBGuy]
tuuPaul Offline
Junior Member

Registered: 05/15/18
Posts: 64
First row in .csv file is 0 price. I don not understand it.

Top
#477089 - 05/16/19 08:55 Re: export asset to .txt file [Re: tuuPaul]
Spirit Offline
Moderator

Registered: 09/02/03
Posts: 830
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.

Top
#477090 - 05/16/19 09:01 Re: export asset to .txt file [Re: Spirit]
tuuPaul Offline
Junior Member

Registered: 05/15/18
Posts: 64
i followed your instruction but there is nothing change.

Top
#477115 - 05/17/19 16:21 Re: export asset to .txt file [Re: tuuPaul]
sdh309795gaas Offline
Member

Registered: 12/07/14
Posts: 126
Loc: 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

_________________________
Skype: simeon.p@web.de

Top
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