Date/Time: Sun, 07 Aug 2022 15:24:33 +0000
Timestamp for records in TimeandSales array
View Count: 863
|User44130 - Posts: 23|
I want to get timestamp for records in TimeandSales array. Previously I used the following method to access time data:
TSArrSize = TimeSales.GetArraySize() - 1;
SCDateTime TempDateTime = COMBINE_DATE_TIME(10, HMS_TIME(TimeSales[TSIndex].Hour, TimeSales[TSIndex].Minute, TimeSales[TSIndex].Second))
But now I get this error message during compilation:
-- Starting build of Custom Studies Source files: AAAProdStudyColl_r6.cpp. -- 09:39:02
"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\AAAProdStudyColl_r6.dll"
C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp: In function 'void scsf_TickProcLogOut(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp:98:25: error: 'const struct s_TimeAndSales' has no member named 'Second'
C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp:118:20: error: 'const struct s_TimeAndSales' has no member named 'Second'
C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp:122:119: error: 'const struct s_TimeAndSales' has no member named 'Hour'
C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp:122:132: error: 'const struct s_TimeAndSales' has no member named 'Minute'
C:\SierraChart\ACS_Source\AAAProdStudyColl_r6.cpp:122:147: error: 'const struct s_TimeAndSales' has no member named 'Second'
-- End of Build -- 09:39:03
Please advise the method to get Time and Sales timestaps.
Sierra Chart Engineering - Posts: 104213
This change was made more than a year ago and is documented on the What is New page. Refer to the SierraChart.h file for the current structure.
There is a single SCDateTimeMS DateTime; member containing the date and time. This is the same as SCDateTime, except with millisecond precision.
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:
For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
To post a message in this thread, you need to log in with your Sierra Chart account: