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
Topic Options
Rate This Topic
#477086 - 05/16/19 06:00 It is easy for you.
tuuPaul Offline
Junior Member

Registered: 05/15/18
Posts: 64
hello, i tried to export date to .csv file but it does not work. "Crush in function:run() at bar 0" this error appeared. Please give me the solution. Script is below

function run()
{
StartDate = 20160101;
EndDate = 20161231;
TimeFrame = 1;
vars une = series(priceClose());
printf(TO_CSV,"nDate: %s",strdate(YMD,0));
}

Top
#477092 - 05/16/19 12:00 Re: It is easy for you. [Re: tuuPaul]
Spirit Offline
Moderator

Registered: 09/02/03
Posts: 830
printf(TO_CSV is also wrong, it must be print(TO_CSV.

https://manual.zorro-project.com/printf.htm

Top
#477093 - 05/16/19 12:34 Re: It is easy for you. [Re: Spirit]
tuuPaul Offline
Junior Member

Registered: 05/15/18
Posts: 64
okey works correct. I changed YMD with YMDH then i does not work. How to fix it? Also i want price and date must be locate in two separate columns. Now it located one columns. How fix it?

Top
#477099 - 05/16/19 15:43 Re: It is easy for you. [Re: tuuPaul]
sdh309795gaas Offline
Member

Registered: 12/07/14
Posts: 126
Loc: Germany
Your script doesn't export your "une" series at all, so this can't be the code that writes date and price in the same column. Please show us the code snippet that isn't working as intended.
_________________________
Skype: simeon.p@web.de

Top
#477106 - 05/16/19 16:21 Re: It is easy for you. [Re: sdh309795gaas]
tuuPaul Offline
Junior Member

Registered: 05/15/18
Posts: 64
this script can export dates and une to .csv file. but i need to export une and dates not same column in .csv file. Alse want export time.

function run()
{

StartDate = 20160101;
EndDate = 20161231;
vars une = series(priceClose());
print(TO_CSV,"nDate: %s",strdate(YMD,0));
print(TO_CSV,"n une=%.3f",une[0]);

}

Top
#477110 - 05/16/19 16:39 Re: It is easy for you. [Re: tuuPaul]
AndrewAMD Offline
User

Registered: 02/21/17
Posts: 652
Loc: Chicago
CSV means "comma separated values". You need to assemble the strings yourself.

A comma will divide columns. A newline character will divide rows.


Edited by AndrewAMD (05/17/19 15:18)

Top



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

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