Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 21:41:25 +0000



Post From: Mistake in documentation and no warning in build

[2023-10-29 21:58:49]
japatu - Posts: 1
Automated Trading From an Advanced Custom Study: sc.GetTradePosition

Example.

int Quantity = PositionData.PositionQuantity;//Access the quantity

correctly

double Quantity = PositionData.PositionQuantity;//Access the quantity

when it compiles from remote with int, there is no warning
-- Starting remote build of Custom Studies Source files: bandziorek.cpp. 64-bit -- 22:30:16

Allow time for the server to compile the files and build the DLL.

The remote build succeeded.

Writing file to: C:\SierraChart\Data\bandziorek_64.dll
-- End of Build -- 22:30:22

Build with Visual C++:
[vcvarsall.bat] Environment initialized for: 'x64'
bandziorek.cpp
C:\SierraChart\ACS_Source\bandziorek.cpp(151): warning C4244: "inicjowanie": konwersja z "double" do "int", mo�liwa utrata danych
Trwa tworzenie biblioteki bandziorek.lib i obiektu bandziorek.exp
Trwa generowanie kodu
Zako�czono generowanie kodu
-- End of Build -- 22:28:19