Hi,
I have a trading panel EA I've created. It's full of wonderful buttons that I programmed. By and large, it works great.
I realize that the issue I'm about to describe does not include code or specifics -- this is because there is too much code to share it all, and I'm not sure how to even start to isolate where the issue might be, to the point where sharing code makes sense -- so thank you in advance for any guidance you can suggest.
The issues is that oftentimes:
-'Occasionally' (when MT4 was opened recently, or off busiest market hours)
-or 'Often' (when MT4 has been open longer, or during busier market hours)
...I must push a button two or more times for the click to register. Often, the button will visually show that it was pressed, but instead of a quick toggle, it just sits there until it is pressed (at least) one more time. It doesn't matter what the button does. It happens equally across buttons regardless of it's function (e.g. place a trade, change a screen, add/remove an indicator, etc).
It seems the simplest explanation or fix might be to remove charts, bars from charts, or optimize code to reduce processor load and keep everything moving as quickly as possible. But I have already gone after that low hanging fruit and am hoping folks might be able to suggest areas to look into. I also welcome any links to other places on the interwebs that might be helpful in optimizing. I've googled a lot but am running out of tips to try.
Thanks in advance,
FtN
I have a trading panel EA I've created. It's full of wonderful buttons that I programmed. By and large, it works great.
I realize that the issue I'm about to describe does not include code or specifics -- this is because there is too much code to share it all, and I'm not sure how to even start to isolate where the issue might be, to the point where sharing code makes sense -- so thank you in advance for any guidance you can suggest.
The issues is that oftentimes:
-'Occasionally' (when MT4 was opened recently, or off busiest market hours)
-or 'Often' (when MT4 has been open longer, or during busier market hours)
...I must push a button two or more times for the click to register. Often, the button will visually show that it was pressed, but instead of a quick toggle, it just sits there until it is pressed (at least) one more time. It doesn't matter what the button does. It happens equally across buttons regardless of it's function (e.g. place a trade, change a screen, add/remove an indicator, etc).
It seems the simplest explanation or fix might be to remove charts, bars from charts, or optimize code to reduce processor load and keep everything moving as quickly as possible. But I have already gone after that low hanging fruit and am hoping folks might be able to suggest areas to look into. I also welcome any links to other places on the interwebs that might be helpful in optimizing. I've googled a lot but am running out of tips to try.
Thanks in advance,
FtN