How can the script programmatically go through all the instruments that are selected in the Market Watch window? - page 3
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
There is no perversion in the script. It's a bit unconventional, that's all.
Why did you have to make up such a perversion... It's easier to write an external DLL, in which the required data are pulled from MarketWatch object. You can't do it with MQL4, because the memory allocation procedure is required.
Although, in principle, it's already clear how the script will work. But it's clearly an unreliable solution, and will probably cause frequent hangs of the terminal. It hangs often enough as it is...
In MQL4 you can (tried) get these data without writing a DLL. But the above approach is much more universal. You can easily and conveniently shove a lot of data into WriteSymbol() function...
I wonder how to get it out? With what commands? If such a thing is really possible, it would be greatly appreciated... Although I seriously doubt it's possible...
I have pulled data from Market Watch myself, but only in C++. To do this, you first create a new process (OpenProcess), reserve memory in it (VirtualAllocEx), place the required data structure there, and save the necessary information from the object there. And then we read the necessary data from there. But you can't get the information by messaging only, I tried it. The object is of ListView type.
For reasons unknown to me, the forum cannot display the video correctly. Therefore I have attached it as a ZIP-archive.
I haven't encountered any unreliability or inoperability of this script.
Simpler (only one global variable) and more reliable (no hash function) version of the script:
what command can I use to "reset" a symbol to an already open chart? i.e. switch the current chart to the symbol I want?
Here made ZG_All Quotings 1-80924!!!
Thanks getch for the great idea and flight of thought!!!
Would love to know the name of the hero :-)
This script is the last way to get quotes from a broker.
An even tougher way is to visit your broker in person with special tools to knock out quotes.