Support Board
Date/Time: Mon, 17 Mar 2025 01:18:38 +0000
Issue with sc.GetTradeListEntry()
View Count: 413
[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 |
[2022-09-02 17:26:45] |
Sierra_Chart Engineering - Posts: 18801 |
Use this function instead: sc.GetFlatToFlatTradeListEntry Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-09-04 04:21:27] |
Tony - Posts: 554 |
Thanks so much for your reply, also, I just found "sc.GetTradePosition" which is very easy to use and reliable. I will use sc.GetFlatToFlatTradeListEntry to get data of closed trades, and sc.GetTradePosition to get data of open positions.
|
To post a message in this thread, you need to log in with your Sierra Chart account: