Support Board
Date/Time: Mon, 25 Nov 2024 18:34:32 +0000
[Programming Help] - Message Log is laggy when using Custom Advanced Study
View Count: 210
[2024-02-11 21:02:58] |
User882463 - Posts: 7 |
I'm trying to develop a custom advanced study, and when I go to Analysis > Build Custom Studies DLL > then clik on Build tab > then Remote Build, sometimes is telling me that it couldn't build my custom study file because "Failed to open the file. Windows error code 32: The process cannot access the file because it is being used by another process." , anyways I then go and select again the Files to Compile even though my file is already selected, then it works so is being build successfully, but when I'm trying to use the commands that I've coded it to do the Message Log window is not showing me the response log in real time, and actually now is not sending it at all, the only way I can get the Message log response is when I remove the Custom Study from the chart and add it again, after that I'm getting only once, even if I'm hitting the command multiple times. Short story this Custom Study is made to show the price whenever I hold CTRL key and press left Click button. So what can it be that I'm not getting real time response from Message Log window ? I'm using a Macbook Pro M1 16GB RAM 1TB Storage and using Parallels Desktop in order to use Windows 11 on Mac OS, could this be related to my laptop or not ? The thing is that my charts or chartbooks are working fine, with no lagging. |
[2024-02-12 00:12:11] |
Sierra_Chart Engineering - Posts: 17174 |
The only thing we can say about the Message Log is make sure it is not disabled: Message Log: Disabling Message Log List View You really should not be getting this when using Remote Build: "Failed to open the file. Windows error code 32: The process cannot access the file because it is being used by another process." We do think the problems would have to be related to using a Mac OS and Parallels. But not really sure. The issues you are having you should not be having. Does not make any sense to us. 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2024-02-12 00:12:23
|
[2024-02-12 03:17:17] |
User882463 - Posts: 7 |
The Message Log window is on my screen so is not disabled, I'm watching it while I press my custom keys in order to give me some feedback and I don't get the feedback only when I go to studies and remove the custom study from the chart and press Apply button , then I get the message in the Message Log window, so why am I not getting the message in real time ? why so slow, it's like everytime I'm removing my custom study from the chart it gets refreshed or something like that and then it shows me my message in the Message Log window. Why is this happening ? |
[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" ? |
[2024-02-12 05:09:33] |
User882463 - Posts: 7 |
I've actually commented out that block of code and I've gave it a try without it as well just to see if it works, and actually it works fine without that block of code. Is this because the market is open now (E-mini S&P500 ), and when I've tried for the past 2 days when the market was closed, is it possible to be because of that? |
To post a message in this thread, you need to log in with your Sierra Chart account: