Gamestudio Links
Zorro Links
Newest Posts
A8 and Draw_Line3D (SOLVED)
by Dooley. 06/19/19 21:27
Bring the old grin back!
by alibaba. 06/19/19 20:35
FXCM: "Can't connect to price server"
by jcl. 06/19/19 15:47
Data Execution Prevention Strikes Again
by Dooley. 06/19/19 15:38
assert
by jcl. 06/19/19 14:59
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
6 registered members (Dooley, AndrewAMD, alibaba, Quad, 2 invisible), 645 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Qw3rty, Dal, Carson, giantj, dh85
18236 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
export asset to .txt file #477067
05/15/19 01:28
05/15/19 01:28
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
Hello all, Is it possible to export assets(USDJPY, EURUSD, CADJPY...etc) to .txt file using zorro script? if it is possible give me some advice. To export assets to .txt file manually is needs more time.

Re: export asset to .txt file [Re: tuuPaul] #477068
05/15/19 04:47
05/15/19 04:47
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
Also it needs to automatically export assets in time frequency

Re: export asset to .txt file [Re: tuuPaul] #477070
05/15/19 05:36
05/15/19 05:36
Joined: Apr 2008
Posts: 237
Petra Offline
Member
Petra  Offline
Member

Joined: Apr 2008
Posts: 237
There is a command print(TO_CSV...) for this.

Re: export asset to .txt file [Re: Petra] #477071
05/15/19 09:29
05/15/19 09:29
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
is it really true?

Re: export asset to .txt file [Re: tuuPaul] #477072
05/15/19 09:54
05/15/19 09:54
Joined: Feb 2017
Posts: 664
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 664
Chicago
Yes.

Re: export asset to .txt file [Re: Petra] #477074
05/15/19 12:06
05/15/19 12:06
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
this script works but in file-export_USDJPY.csv there is no price only many string of 'une'. How to get price value?

function run(){
StartDate = 20160101;
EndDate = 20161231;
TimeFrame = 1;
vars une = series(priceClose());
print(TO_CSV,"une",une);
plot("une",une,NEW,BLUE);
}

Re: export asset to .txt file [Re: tuuPaul] #477078
05/15/19 15:35
05/15/19 15:35
Joined: May 2018
Posts: 60
S
SBGuy Offline
Junior Member
SBGuy  Offline
Junior Member
S

Joined: May 2018
Posts: 60
Dude... it's:

print(TO_CSV,"%f",une[0])

It adds a new CSV line at every run()

You can't just print a vars variable directly.

Re: export asset to .txt file [Re: SBGuy] #477079
05/15/19 16:02
05/15/19 16:02
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
Also i want to print dates with time. This price is timeframe of 1hour time. How?

Re: export asset to .txt file [Re: tuuPaul] #477081
05/15/19 16:51
05/15/19 16:51
Joined: May 2018
Posts: 60
S
SBGuy Offline
Junior Member
SBGuy  Offline
Junior Member
S

Joined: May 2018
Posts: 60
One of these functions should get what you want.

https://zorro-project.com/manual/en/month.htm

Off the top of my head, this will probably work

wdateBar(Bar)

play around with them.

Re: export asset to .txt file [Re: SBGuy] #477085
05/16/19 02:24
05/16/19 02:24
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
i tried to rewrite under your advice. Script is below but there is an error not work. What is the problem?

function run()
{
asset("EUR/JPY");
StartDate = 20160101;
EndDate = 20161231;
TimeFrame = 1;
vars une = series(priceClose());
printf(TO_CSV,"nDate: %s",strdate(YMDH,0));
print(TO_CSV,"une=%.3f",une[0])
}

Page 1 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