Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 19:32:10 +0000



Seeing the time on a chart in an alternate Time Zone?

View Count: 1190

[2019-10-10 18:40:18]
ycomp - Posts: 274
Would there be a way to use some kind of custom study to see the time at a spot in the chart in the Chart Values window, for another Time Zone?

For example, most of my charts are on EST - my brain is on EST too.. but my European charts are on Brussels Time. Sometimes it would be nice to see what time it is in EST on a European chart, for example when the US Markets are open.

I'm guessing this is not possible but I thought I would ask just in case.
[2019-10-10 19:30:28]
Sierra Chart Engineering - Posts: 104368
Yes it is certainly possible to do a time zone conversion and then to display the time in a different time zone. There is a Value Format to display a Study Subgraph in a Time format which can be viewed in the Chart Values window.

This is all supported by ACSIL:
Advanced Custom Study Interface and Language (ACSIL)
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-10-10 19:46:26
[2019-10-10 19:42:05]
User90125 - Posts: 715
Take the "Clock - Real Time" study and customize it to display in the Time Zone of your choice.

See above for how to get the time to show on the Chart Values window.
Date Time Of Last Edit: 2019-10-10 19:53:30
[2019-10-11 05:57:10]
ycomp - Posts: 274
wouldn't using Clock-Real Time only show the current time? Or am I misunderstanding that Study?
[2019-10-11 06:19:13]
User90125 - Posts: 715
Perhaps :) But it's the modification of the source code which should get you closer to what you want.
[2019-10-11 16:03:57]
User90125 - Posts: 715
An even better study to modify is the "Clock" study found in the User Contributed Studies files.

https://www.sierrachart.com/AdditionalFiles/UserContributedACS_SourceCode/Clock.cpp
[2019-12-11 13:17:14]
User97684 - Posts: 136
The 'Clock' study in the user contributed files, is giving me incorrect times for Chicago and New York, but correct for London, which is where i am. Could anybody please help to get this to work?
Thanks
[2019-12-11 20:18:37]
User90125 - Posts: 715
Modify the source code. Look for sc.ConvertToSCTimeZone and replace it with sc.ConvertDateTimeFromChartTimeZone. Then compile it and see if it works for you :)

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account