Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 02:35:20 +0000



Post From: %d, %s; %f ?

[2023-03-07 14:47:25]
User431178 - Posts: 544
Here is some more complete information, maybe it is helpful - https://en.cppreference.com/w/cpp/io/c/fprintf

Symbol doesn't seem to display a string... it displays a binary character. Data is supposed to be a string, so I don't know why.
You would need to use symbol.GetChars() as functions expects char* not SCString

Same problem for Fill time: how to display that one
For converting SCDateTime to string, take a look at sc.DateTimeToString

sc.DateTimeToString()

Last: Position quantity is always 0. Even if I stack orders (I'm in simulated environment).
TradePositionQuantity is double not unsigned int, i.e. f not u
Date Time Of Last Edit: 2023-03-07 14:48:12