Support Board
Date/Time: Sat, 23 Nov 2024 15:26:36 +0000
Post From: ACSIL: s_SC_PositionData.PriorPositionQuantity is only returned by sc.GetTradePosition
[2024-08-21 01:12:38] |
User900285 - Posts: 94 |
Hello, From what I am seeing, the PriorPositionQuantity variable is only filled in when using the sc.GetTradePosition() function. It is not filled in when using sc.GetTradePositionByIndex() or sc.GetTradePositionForSymbolAndAccount(). I am working on a study that aims to obtain the prior position quantity for each position in the account, and this does seem like the most logical way to obtain it. For now I can create a workaround using a persistent variable but I thought I could point it out in case it was an easy fix to add. |