Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 15:43:58 +0000



Post From: *Technical Issue* sc.GetTradePosition(PositionData) NOT updating PositionQuantity

[2016-03-30 10:24:19]
User972044 - Posts: 154
I already read this article several times before. What are you implying as the cause of this problem? This article just mentioned the possible difference that I can encounter when live trading vs. simulated trading so what does this mean about this PositionData.PositionQuantity not being updated? I did NOT call s_SCPositionData PositionData and sc.GetTradePosition(PositionData); statements after checking whether the trade has been executed successfully or not so the delay that could be encountered in live trading is NOT relevant here if that's what you are referring to. As soon as I executed a sc.BuyEntry() or a sc.SellEntry(), I call the s_SCPositionData PositionData and sc.GetTradePosition(PositionData); right away, so you are telling me by that time Sierra Charts still has not updated the trading position information database where sc.GetTradePosition(PositionData) statement gets the copy of trading position from?

Is that what you are referring to? If yes, why so slow? When does the trading information actually get updated? It would be more helpful if you can explain what is the cause of the problem instead of directing your user to just some documentations without any explanations. And once you clarified, can you provide some suggestions as what should I do? Can I never rely on this PositionData.PositionQuantity information as it will always be slow and instead should just keep track of trading position information manually like what I am doing now? Or should I set sc.UpdateAlways to true if I really want to use PositionData.PositionQuantity and if yes, how would I help? Please advise.

Thank you.
Date Time Of Last Edit: 2016-03-30 10:26:05