Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 16:31:16 +0000



Post From: Timestamp for records in TimeandSales array

[2014-05-18 15:42:17]
User44130 - Posts: 23
Hello,

I want to get timestamp for records in TimeandSales array. Previously I used the following method to access time data:

SCTimeAndSalesArray TimeSales;
sc.GetTimeAndSales(TimeSales);
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.

Thanks