Login Page - Create Account

Support Board


Date/Time: Mon, 17 Mar 2025 11:56:42 +0000



Post From: Issue with sc.GetTradeListEntry()

[2022-08-31 23:17:46]
Tony - Posts: 554
Hi,

I just noticed this, not sure started from which version.

I use TradesList[TradeIndex].TradeQuantity to get the total open contracts, it worked great until recently when I try to open a 3-contract position by sending 3 separate orders, TradesList[TradeIndex].TradeQuantity always gave the number 1, not sure why, the Trade Quantity in the Trading Log shows 3.

But if I send one order with 3 contracts, I will get the number 3 from TradesList[TradeIndex].TradeQuantity.

Thanks