Register
Log In
Forums
Starting with Zorro
Zorro - import diff time zones csv
Forums
Calendar
Active Threads
Search
Forum Help
Gamestudio Links
► Features
► Download
► Online Tutorial
► Free Resources
Zorro Links
► Download
► Online Manual
► Online Tutorial
► Blog
► Support
► What's New?
Newest Posts
Alternative to Stooq for Zorro S
by cwford. 10/09/26 21:13
Stooq now requires an API key
by cwford. 10/08/26 23:27
♪♫♪ [For hire] VOLKOVSTUDIO - Music, SFX, Voice over, implementa
by Volkovstudio. 10/08/26 13:53
ZorroGPT
by TipmyPip. 10/06/26 05:32
Didn't Receive Subscription Key after Purchasing Zorro
by AndrewAMD. 10/05/26 16:36
Purchase A8 full licence version
by jcl. 10/05/26 12:12
Alice1 (Black Book) – missing weekend-open bars in H1, results c
by jcl. 10/05/26 12:02
Has anyone developed a turtle trading script?
by gbe. 10/03/26 14:42
AUM Magazine
Latest Screens
Who's Online Now
4 registered members (
JimSimons
,
TipmyPip
,
3run
, 1 invisible), 15,917 guests, and 1 spider.
Key:
Admin
,
Global Mod
,
Mod
Newest Members
JimSimons
,
julienp
,
julienper
,
KelleyAbbey
,
Yopachi
19246 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro - import diff time zones csv
#482554
02/23/21
15:09
02/23/21
15:09
Joined:
Aug 2020
Posts: 59
London
Neb
OP
Junior Member
Neb
OP
Junior Member
Joined:
Aug 2020
Posts: 59
London
Hi all,
If I have csv price history, which is not UTC time zone, but Chicago or Australia server, does Zorro have posibility to convert it, during import ?
Thanks,
Neb
Re: Zorro - import diff time zones csv
[
Re: Neb
]
#482555
02/23/21
17:11
02/23/21
17:11
Joined:
May 2015
Posts: 390
Czech Republic
G
Grat
Senior Member
Grat
Senior Member
G
Joined:
May 2015
Posts: 390
Czech Republic
I had also this problem. My solution:
import CSV into Python/Pandas
convert timestamp to UTC/GMT
save with new Timezone
https:/
/
pandas.pydata.org/
pandas-docs/
stable/
reference/
api/
pandas.DatetimeIndex.tz_convert.html
Code
df.index = df.index.tz_localize('GMT') df.index = df.index.tz_convert('America/New_York')
Last edited by Grat;
02/23/21
17:13
.
Re: Zorro - import diff time zones csv
[
Re: Neb
]
#482556
02/23/21
17:52
02/23/21
17:52
Joined:
Feb 2017
Posts: 1,835
Chicago
AndrewAMD
Serious User
AndrewAMD
Serious User
Joined:
Feb 2017
Posts: 1,835
Chicago
What you do is this:
1) Import the CSV to a dataset as you normally would, knowing that the timestamps are in the given timezone.
2) Modify the dataset using dataset functions and time functions, and the Now variable. Detect daylight savings with dst().
https:/
/
manual.zorro-project.com/
data.htm
https:/
/
manual.zorro-project.com/
month
https:/
/
zorro-project.com/
manual/
en/
date.htm
3) Save your dataset to a t6 file with dataSave.
www.vitaltrades.com
-
andrew@vitaltrades.com
-
YouTube channel
Re: Zorro - import diff time zones csv
[
Re: Neb
]
#482572
02/28/21
12:23
02/28/21
12:23
Joined:
Aug 2020
Posts: 59
London
Neb
OP
Junior Member
Neb
OP
Junior Member
Joined:
Aug 2020
Posts: 59
London
Hi Grat, AndrewAMD,
Thank you both !
Neb
Moderated by
Petra
Hop To
Gamestudio ------
Starting with Gamestudio
Atari lite-C
Editors & Templates
A8 Engine
Shaders
Third Party Tools
Acknex Users Magazine
The Past
The Future
Zorro ------
Starting with Zorro
Educational
Automated Trading
Zorro Scripts
RangerZ & Z Systems
Zorro and the Brokers
Zorro Future
Feedback ------
Bug Hunt
Blame the Manual
Ask the Developers
Updates & Announcements
Rants
Game Creation ------
Game Design & Business
Jobs Wanted
Jobs Offered
User Resources
Projects
Showcase
Beyond Games & Money ------
Hilbert's Hotel
Morbius' Virtual Answering Machine
Print Thread
Switch to Threaded Mode
5
Excellent
4
Good
3
Average
2
Bad
1
Terrible
View Profile
Send Private Message
Follow User
Show Forum Posts
View Profile
Send Private Message
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
View Profile
Send Private Message
Follow User
Show Forum Posts
Default Style
gamestudio
UBBT77
UBBT77 - Dark2
Forum Rules
·
Mark All Read
·
Powered by UBB.threads™ PHP Forum Software 7.7.1