Support Board
Date/Time: Sun, 09 Feb 2025 04:25:56 +0000
Post From: Datatypes double not int on 64 bit version, here s_SCPositionData
[2020-08-05 15:32:22] |
TeeJay - Posts: 123 |
Sadly your documentation is not actual ob s_SCPositionData, as it seems you are using double instead of int for all Quantity types. There are also some newer fields in the structure which are not documented. I don't know if they are ready to use yet, but the data type change is productive for sure and it made me some trouble I could only figure out when I checked the sources, as I was insisting that the quantities are int. Would be nice if the documentation could be updated, thanks The codepart in scstructures.h is #ifdef _WIN64
typedef double t_OrderQuantity32_64;//TODO: Use this only when change to SCDateTimeUnix #else/* #ifdef _DEBUG typedef double t_OrderQuantity32_64; #else*/ typedef int t_OrderQuantity32_64; //#endif #endif Edit : On top of that I have the question what is the reason for sc.GetTradePosition is always returning 1, even if there is absolutely no position for the instrument/symbol? How determine this best then if there is no position? Check Symbol in s_SCPositionData for being empty? I really don't see this as programming help here but rather an explanation how to handle a function that returns a found if there is no result. Thanks Date Time Of Last Edit: 2020-08-05 16:14:04
|