Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 05:49:06 +0000



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

[2020-07-10 22:15:45]
bradh - Posts: 854
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