I want to write a script that d-eselects all objects in the main window so that I can attach it to a shortcut key (e.g. control+shift+A). Does anyone know how to do this in MQL4 code please? Otherwise, is there a way to attach a key to the "deselect all" menu item? I suppose I could send the approprite menu keys to the application via a script but I would like to call the proper function if there is one.
- Signaling a change in "select/deselect" an Object into an Indic. code
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- How to programmatically get the value of an indicator which is applied to the value of another indicator
take a look codebase.mql4.com/5510
Do you mean you want to remove the surrounding selection boxes from the objects on the chart?
I would do this (let's say there is only one object named "MyObject"):
ObjectSet("MyObject", OBJPROP_TIMEFRAMES, -1); //this will hide the object on all timeframes
ObjectSet("MyObject", OBJPROP_TIMEFRAMES, 0); //this will show object on all timeframes again, without the selection box
Of course you can make a loop for all of your objects, and you also can set different timeframe parameters if needed.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register