Support Board
Date/Time: Fri, 27 Dec 2024 16:12:41 +0000
Post From: *Technical Issue* sc.GetTradePosition(PositionData) NOT updating PositionQuantity
[2016-03-30 10:29:00] |
Sierra Chart Engineering - Posts: 104368 |
As soon as I executed a sc.BuyEntry() or a sc.SellEntry(), I call the s_SCPositionData PositionData and sc.GetTradePosition(PositionData); right away,
This is the problem. The Position will not have updated at that moment in time. When does the trading information actually get updated?
The Position Quantity only updates when an order fill is received. That can be sometime later. Should be very fast but it is not going to be when processing is still in the study function.When the Position Quantity changes, the study function will be called. So there is no need to use sc.UpdateAlways. 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2016-03-30 10:29:27
|