Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 04:39:09 +0000



Post From: wrong average prices in the

[2019-04-03 18:49:45]
archymede - Posts: 19
Hello,

When using cqg, I noticed there's an issue with the average prices being displayed in the "orders and positions" window.

* If one disconnects and reconnects to the data feed, or restarts sierra chart, the average price shown is divided by 2 as the first screenshot below shows.

* After that reconnection, if opening a new trade without having closed the previous one, the average price is calculated as [(trade price #1 /2) + (trade price #2)]/2.

* Another disconnection or platforms restart, and everything starts again from the previous steps without at any time showing a real average price which leds to wrong pnl calculations. I didn't notice the "trade activity log" window being affected but it needs an opened chart to actually show the actual stats.

I've tried to downgrade many versions or use the pre-release one, but that issue remains. The only fix I found about this issue was to manually delete the trade and orders files in the sierra chart's directory, then a connection to the data feed will repopulate with the right prices but on the same time delete all the history.
image01-after reconnection.png / V - Attached On 2019-04-03 18:31:56 UTC - Size: 15.53 KB - 293 views
image02-new order.png / V - Attached On 2019-04-03 18:32:06 UTC - Size: 16.02 KB - 295 views
image05-full view.png / V - Attached On 2019-04-03 18:43:11 UTC - Size: 8.01 KB - 276 views