Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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