There is no perversion in the script. It's a bit unconventional, that's all.
Of course there is no perversion in the script itself - I didn't say it exactly right. The perversion is in the way of accessing the list. But you should agree that access to the list of tools should be realized by means of the terminal, not through windows. And the script is very useful, especially for beginners like me who have no experience of working with the Windows. Thank you again, it has a lot of useful solutions, which would have taken me a lot of time to learn on my own.
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.
In MQL4 it is realistic (tested) to pull this data without writing a DLL. But the above approach is much more universal. Because you can easily and conveniently cram a lot of data into WriteSymbol() function...
Your video doesn't work... 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...
getch: 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.
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.