Support Board
Date/Time: Fri, 07 Feb 2025 00:27:30 +0000
Post From: Compile error 2098
[2020-05-06 12:41:20] |
ertrader - Posts: 681 |
Hi Support....my custom study no longer compiles in 2098. It shows errors with SCDateTime and looks like the same error for each time it is set. I've looked at the documentation but it is unclear what needs to change. Can you please help? ACSIL Interface Members - Variables and Arrays: sc.BaseDateTimeIn[] -- Starting remote build of Custom Studies Source files: AutoTradeOrderFlowV3.cpp. 64-bit -- 08:33:38 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: AutoTradeOrderFlowV3.cpp: In function 'void scsf_AutoTradeOrderFlowV3(SCStudyInterfaceRef)': AutoTradeOrderFlowV3.cpp:1284:73: error: ambiguous overload for 'operator-' (operand types are 'SCDateTime' and 'double') SCDateTime CurrentPeriodStartDateTime = sc.BaseDateTimeIn[Index] - 1*DAYS + 1*SECONDS; ^ AutoTradeOrderFlowV3.cpp:1284:73: note: candidate: operator-(double, double) <built-in> In file included from scstructures.h:98:0, from sierrachart.h:19, from AutoTradeOrderFlowV3.cpp:1: scdatetime.h:1476:19: note: candidate: SCDateTime SCDateTime::operator-(const SCDateTime&) const inline SCDateTime SCDateTime::operator -(const SCDateTime& DateTime) const ^ AutoTradeOrderFlowV3.cpp:1302:58: error: ambiguous overload for 'operator+' (operand types are 'SCDateTime' and 'double') RollingStartDateTime = sc.BaseDateTimeIn[Index] + (sc.SecondsPerBar - 1) * SECONDS; ^ AutoTradeOrderFlowV3.cpp:1302:58: note: candidate: operator+(double, double) <built-in> In file included from scstructures.h:98:0, from sierrachart.h:19, from AutoTradeOrderFlowV3.cpp:1: scdatetime.h:1482:19: note: candidate: SCDateTime SCDateTime::operator+(const SCDateTime&) const inline SCDateTime SCDateTime::operator +(const SCDateTime& DateTime) const ^ AutoTradeOrderFlowV3.cpp:1310:60: error: ambiguous overload for 'operator-' (operand types are 'SCDateTime' and 'double') RollingStartDateTime = sc.BaseDateTimeIn[Index+1] - 1*SECONDS; ^ AutoTradeOrderFlowV3.cpp:1310:60: note: candidate: operator-(double, double) <built-in> In file included from scstructures.h:98:0, from sierrachart.h:19, from AutoTradeOrderFlowV3.cpp:1: scdatetime.h:1476:19: note: candidate: SCDateTime SCDateTime::operator-(const SCDateTime&) const inline SCDateTime SCDateTime::operator -(const SCDateTime& DateTime) const ^ AutoTradeOrderFlowV3.cpp: In function 'void GetIndexForStartofDayPeriodForDaysBack(SCStudyInterfaceRef, SCDateTime, int, bool, int, int&)': AutoTradeOrderFlowV3.cpp:1808:63: error: ambiguous overload for 'operator-' (operand types are 'const SCDateTime' and 'double') SCDateTime PriorPeriodStartDateTime = InitialStartDateTime - DaysBack * DAYS; ^ AutoTradeOrderFlowV3.cpp:1808:63: note: candidate: operator-(double, double) <built-in> In file included from scstructures.h:98:0, from sierrachart.h:19, from AutoTradeOrderFlowV3.cpp:1: scdatetime.h:1476:19: note: candidate: SCDateTime SCDateTime::operator-(const SCDateTime&) const inline SCDateTime SCDateTime::operator -(const SCDateTime& DateTime) const ^ AutoTradeOrderFlowV3.cpp:1809:65: error: ambiguous overload for 'operator+' (operand types are 'SCDateTime' and 'double') SCDateTime PriorPeriodEndDateTime = PriorPeriodStartDateTime + 1 * DAYS - 1 * SECONDS; ^ AutoTradeOrderFlowV3.cpp:1809:65: note: candidate: operator+(double, double) <built-in> In file included from scstructures.h:98:0, from sierrachart.h:19, from AutoTradeOrderFlowV3.cpp:1: scdatetime.h:1482:19: note: candidate: SCDateTime SCDateTime::operator+(const SCDateTime&) const inline SCDateTime SCDateTime::operator +(const SCDateTime& DateTime) const ^ -- End of Build -- 08:33:42 Date Time Of Last Edit: 2020-05-06 12:46:23
|