Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 20:33:52 +0000



Post From: Message Log is laggy when using Custom Advanced Study

[2024-02-12 04:43:37]
User882463 - Posts: 7
I'm coming with a quick update about my problem, apparently since I've added a function that is suppose to give me the account details, actually I was looking for a function that will give me the account balance and I've found this code

n_ACSIL::s_TradeAccountDataFields TradeAccountDataFields;
sc.GetTradeAccountData(TradeAccountDataFields, sc.SelectedTradeAccount);
double AccountValue = TradeAccountDataFields.m_AccountValue;
Message.Format("AccountValue: %f ", AccountValue);
sc.AddMessageToLog(Message, 0);


and with this code it appears that the Message Log window it outputs the some long number value ( it's not the acount balance I was looking for, maybe you could give me some advice about that ) so it outputs this long number every 2-3 seconds, and because of that it's keeping the Custom Study "refreshed" so know when I press my custom keys it actually responding with a small delay of 1-2 seconds.

Know what can I do to make this actually faster, and why is this working only when some function like that one above is keeping the custom study "refreshed" ?