Support Board
Date/Time: Sat, 28 Dec 2024 08:03:54 +0000
Get Position For Symbol And Account Function ACSIL
View Count: 1309
[2016-04-12 14:29:36] |
User96015 - Posts: 55 |
Dear sir, I tried this function, but it doesn' t retrun anything. It only returns the position quantity, but for symbol which is applied the study. Have you ever tried this function? Bye, |
[2016-04-12 18:06:23] |
Sierra Chart Engineering - Posts: 104368 |
Yes it does work properly. We tested it now. And of course we tried it, we developed it. Show us the source code that you are using when you call this function. 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-04-12 18:09:24
|
[2016-04-13 11:13:24] |
User96015 - Posts: 55 |
const char* SymbolToTrade = "F.US.DDM16"; s_SCPositionData S_Port; sc.GetTradePosition(S_Port); s_SCPositionData D_Port; sc.GetTradePositionForSymbolAndAccount(D_Port,SymbolToTrade,sc.SelectedTradeAccount); Symbol and trading account are right..because I also open position with same variables. Thx Date Time Of Last Edit: 2016-04-13 11:14:08
|
[2016-04-13 11:55:18] |
User96015 - Posts: 55 |
Look at the attachment. Second one is VS Debug of PositionData struct. Thx. |
DChart.png / V - Attached On 2016-04-13 11:54:03 UTC - Size: 65.67 KB - 338 views DDebug.png / V - Attached On 2016-04-13 11:54:17 UTC - Size: 11.1 KB - 305 views |
[2016-04-13 16:26:06] |
User96015 - Posts: 55 |
I have also tried to give the same symbol which study is applied, but it only returns the position quantity. Maybe you forgot something about average price in the function. |
[2016-04-14 06:16:49] |
Sierra Chart Engineering - Posts: 104368 |
sc.GetTradePositionForSymbolAndAccount() does not set the Average Price for simulated trading but this will be added to the next release. 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 |
[2016-04-15 13:10:47] |
User96015 - Posts: 55 |
Ok thx. All works fine. I' d like to suugest you a future. It would be usefull to have the possibility to able Maintain Additional Chart Data Arrays directly from chart setting, otherwise you have to put an indicator for all chart that you call from only one study. Bye and thx again |
To post a message in this thread, you need to log in with your Sierra Chart account: