Support Board
Date/Time: Wed, 12 Feb 2025 07:18:00 +0000
Tick chart opened by custom study has invalid session times
View Count: 867
[2020-10-09 19:46:47] |
User787032 - Posts: 37 |
I recently upgraded from SC version 2158 to version 2177. One of my custom studies opens a 1-tick chart and this was working perfectly in version 2158, but now the tick chart is blank and I found that the session times on the chart are set at -02:24:00 for start and end times (see attachment TickChartSetting). The settings for session times in Global Settings >> Symbol Settings are correct (see attachment SymbolSettings). It's impossible to manually change the session settings on the tick chart as it immediately reverts to thge invalid times. I re-installed version 2158 and it works correctly again. |
![]() ![]() |
[2020-10-10 07:43:30] |
|
There must be something wrong with the custom study causing this. We ran a test and cannot see any problem with this and it does not make sense there would be a problem. Look at how the Session Times are set in this example function provided with Sierra Chart: scsf_OpenChartOrGetChartReferenceExample Refer to: How to Build an Advanced Custom Study from Source Code 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 |
[2020-10-10 08:58:09] |
User787032 - Posts: 37 |
Your documentation for sc.OpenChartOrGetChartReference states the following with regard to Session Times: "SessionStartTime, SessionEndTime: These specify the primary Session Start and End times. These session times are optional and only apply to Intraday charts. If the session times are not specified, then the Intraday Session Times from Global Symbol Settings are used." My custom study does not set session times when it opens the tick chart, therefore the session times should, according to your documentation, be taken from the Global Symbol settings, which have the correct values as shown in the file I attached. The Global Symbol session times are inserted correctly in SC version 2158, but not in version 2177. |
[2020-10-11 10:21:13] |
User90125 - Posts: 715 |
Is the .cpp for your study available to look at?
|
[2020-10-11 11:01:27] |
|
Yes the documentation is correct. We tested the sc.OpenChartOrGetChartReference function and could not reproduce any issue. We wonder if the problem is compiler dependent. 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 |
[2020-10-11 18:20:38] |
User787032 - Posts: 37 |
I'm using Build with Visual C++- Release to compile the study. The compiler prints the following version details: C:\windows\System32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat" C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 |
[2020-10-11 19:02:54] |
User787032 - Posts: 37 |
I just installed SC version 2179 and ran the study again - same problem as before with corrupt session times on the tick chart. I then re-compiled the study with the same compiler as I used on SC v2158, and the study now works correctly, so it seems that something between SC versions 2158 and 2179 necessitates a re-compile, at least for the sc.OpenChartOrGetChartReference function's use of session times.
|
[2020-10-12 21:36:09] |
|
Ok as long as the problem is resolved.
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 |
[2020-10-13 03:46:33] |
User112177 - Posts: 8 |
Note: it's probably related to another problem with the tick charts: High / Low for the time period = extended: wrong start on the tick chart Solution is to roll back to v2168, seems like it [v2168] has proper libraries / source code for the studies. Date Time Of Last Edit: 2020-10-13 03:46:50
|
To post a message in this thread, you need to log in with your Sierra Chart account: