Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 21:06:14 +0000



Post From: Offering To The Community: Brett Johnson's Standard Tool Kit

[2020-07-10 22:15:45]
ForgivingComputers.com - Posts: 960
Hi Brett,

Thank you for sharing your toolkit. I started to use the debug_PrintOrders function when I needed to learn about reading trade lists, but I was getting strange results. The PositionQuantity was printing 0 when it should be returning a non-zero value.

I was able to get it right when I added (int) to the Quantity lines:

  fprintf(FileOut, " PositionQuantity: %d\n", (int)PositionData.PositionQuantity);

It then worked. Could be I am using the Visual C++ compiler? I usually don't' use the remote compiler. I tested on Sierra versions 2092 and 2128.

Best wishes,
Brad Houser