Support Board
Date/Time: Fri, 27 Dec 2024 00:39:02 +0000
Question regarding s_SCPositionData PositionData and sc.GetTradePosition(PositionData);
View Count: 761
[2016-03-29 06:42:34] |
User972044 - Posts: 154 |
When you load the same autotrading program on two different currencies on two different charts, when the program enters trades in both currencies, if you execute the sc.GetTradePosition(PositionData) statement and anytime when the trading program checks the PositionData.PositionQuantity, does that PositionQuantity report the total transaction amount outstanding or is it specific to the currency? For example, if I am LONG $100K USD of EUR/USD and also LONG in $100K USD of GBP/USD, does that PositionQuantity report $200K USD whenever the trading program checks it whether it's loaded on the EUR/USD chart or the GBP/USD chart or does it only report $100K USD if it's the trading program loaded on the EUR/USD chart that calls it? In other words, does the sc.GetTradePosition(PositionData) pulls the data from the entire database even if it's called by trading programs loaded on separate charts or does it differentiate? Thanks for your help in advance. |
[2016-03-29 17:13:29] |
Sierra Chart Engineering - Posts: 104368 |
When getting the Position data using ACSIL, it will be for the symbol of the chart.
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-03-29 21:41:49] |
User972044 - Posts: 154 |
So just to confirm, if it`s the trading program that's loaded on the EUR/USD chart that called for sc.GetTradePosition(PositionData), the PositionData.PositionQuantity will only report +100000 if I was long that quantity in EUR/USD? Thanks |
[2016-03-29 21:43:30] |
Sierra Chart Engineering - Posts: 104368 |
Yes.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: