Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 18:49:41 +0000



Mistake in documentation and no warning in build

View Count: 258

[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

[2023-10-29 22:22:59]
Sierra_Chart Engineering - Posts: 17182
This is not really incorrect because in all cases, the quantity is going to be an integer which is actually safer to work with. There is no trading service Sierra Chart works with, that would work with a double.

We will not be changing the documentation.
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, use 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:

Login

Login Page - Create Account