Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 08:36:57 +0000



Post From: sc.GetTradePosition() : from where does it get the data?

[2023-03-10 16:56:54]
BenjFlame - Posts: 305
Let me reformulate.
Each time this code is run:


s_SCPositionData PositionData;
int Result = sc.GetTradePosition(PositionData);
int Quantity = PositionData.PositionQuantity;

From where will it pull the PositionData information? From a local cache or from remote broker in the context of live trading?
Because if this code must run on each chart update and pull the data over the internet from the remote broker, it might significantly slow down operations. I'm testing on the simulator so I'm not sure how it behaves but need to know.