Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 18:02:06 +0000



Post From: Potential Bug With sc.GetTradePosition?

[2024-05-20 16:06:46]
User431178 - Posts: 541

log_position.Format("Current Position = %i", PositionData.PositionQuantity);

This won't work...
You have now moved the goalpost by changing from int to double, but are still using specifier for integer in format.
Look in SCStructures.h, see that PositionData.PositionQuantity is double.


log_position.Format("Current Position = %f", PositionData.PositionQuantity);


This might help - https://cplusplus.com/reference/cstdio/printf/ - as format uses same specifiers.
Date Time Of Last Edit: 2024-05-20 16:08:33