Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 10:48:32 +0000



Post From: Datatypes double not int on 64 bit version, here s_SCPositionData

[2020-08-05 16:43:48]
ForgivingComputers.com - Posts: 1076
I have noticed this change also as it showed up in Brett Johnson's ToolKit (which is full of great examples of ACSIL). I ended up casting the PositionData.PositionQuantity to int:

sc.GetTradePosition(PositionData);
int OpenQty = (int)PositionData.PositionQuantity;

I think this was done to support fractional orders for Forex and other markets.