[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 247
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
sss2019, no time to deal with it now, sorry.
Wrong. Correct, as shown above.
As soon as I get around to it, I'll fix it and edit the code in the post there.
Question. How do I get a pointer to a string? The MQL4 string is C++ lpsz, as far as I understood. But how do we get the string address itself?
If i have an idea how to make one and the same EA work with different wizards. the robot should separately handle this situation when a lock occurs and not interfere with other orders. i.e. we have one position opened at Bay (magic 001) the market went against us and instead of closing the deal the opposite deal opens at Sell with magic 001 and the robot will take care of the situation and I want to open again Bay but with magic (002) in order not to wait long time to take care of it and in case the trend is not successful the Sell lock with magic (002) will open again and so on. Any advice how to make deals work as a layer with different magic? Maybe somebody has faced? Or how to implement?
Example of a counter of open and pending orders by the required symbol and magician
For some reason, the terminal glitched during testing. Now when you turn it on, it starts using about 150 mb of memory and hangs. Was going to reinstall, but moved all my files before doing so. When I opened the folders I found that not all the files I created were there. Where are the rest of them?
For some reason, the terminal glitched during testing. Now when you turn it on, it starts using about 150 mb of memory and hangs. Was going to reinstall, but moved all my files before doing so. When I opened the folders I found that not all the files I created were there. Where are the others?
sss2019, no time to deal with it now, sorry.
As soon as I get around to it, I'll fix it and edit the code in the post there.
Question. How do I get a pointer to a string? The MQL4 string is C++ lpsz, as far as I understood. But how do I get the address of the string itself?
The left screenshot is MQL5, not 4.
No, the fourth one. It's just that the files of the fourth, when clicked, open through the fifth, for some reason
Open MetaEditor for 5, in the left window "Navigator" -> on a folder right mouse click -> "Open folder" and there among folders try to search.
There is no way to do it in MQL4. You can pass a string to a DLL and return the address as INT.
//MQL4
So that others don't suffer the same way, I've attached the whole zipped project. With sources, so that others could see that it is not a virus. I did not have time to check what is compiled in VC++ 6.0 and what is rubbish. StrAddress.dll is in the Debug folder.
Open MetaEditor for 5, in the left window "Navigator" -> right mouse click on a folder -> "Open folder" and there among folders try to search.
Thanks, but nothing from mt4 turned up there. Used search and found all files at the following address:
C:\Users\Qwer\AppData\Local\VirtualStore\Program Files\MetaTrader 4\experts\include
I have no idea how they got there, to be honest, as they were saved properly before.