Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Data history download script - change Daily Open/Close hours #474057
09/14/18 18:47
09/14/18 18:47
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi all,

if I want to download the history price I use the following script using the server broker hours.
Code:
function run()
{
  NumYears = 8;
  while(loop(Assets))
    assetHistory(Loop1,1);
  quit();
}



If I want to download with different hours, the code shown above how can I change it?

thanks

Re: Data history download script - change Daily Open/Close hours [Re: tradingest] #474329
10/06/18 22:51
10/06/18 22:51
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
somebody can you help me.to resolve it?

Re: Data history download script - change Daily Open/Close hours [Re: tradingest] #474344
10/08/18 10:15
10/08/18 10:15
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Open the history file with dataLoad(), then add the desired time zone offset to all time stamps and save it again. Better under a different name, for marking it as a file with nonstandard time stamps.

Re: Data history download script - change Daily Open/Close hours [Re: jcl] #474354
10/08/18 20:33
10/08/18 20:33
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Originally Posted By: jcl
Open the history file with dataLoad(), then add the desired time zone offset to all time stamps and save it again. Better under a different name, for marking it as a file with nonstandard time stamps.


Hi jcl,

thank for your post.
I see the manual but I can not edit using the dataLoad().
Would you be so kind as to show me an example?

Thanks so much jcl

Re: Data history download script - change Daily Open/Close hours [Re: tradingest] #474363
10/09/18 07:20
10/09/18 07:20
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
I have no example, but if you cannot write such a script, you can email Support and they`ll put you in contact with a freelancer.


Moderated by  Petra 

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