Support Board
Date/Time: Fri, 27 Dec 2024 16:49:33 +0000
Post From: Question regarding s_SCPositionData PositionData and sc.GetTradePosition(PositionData);
[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. |