This is not a simple structure. You can't pass it to a DLL. There is probably a bug in mql4.
Simple Structures
Structures that do not contain strings or objects of dynamic arrays are called simple structures; variables of such structures can be freely copied to each other, even if they are different structures. Variables of simple structures, as well as their array can be passed as parameters to functions imported from DLL.
This is not a simple structure. You can't pass it to a DLL. There is probably a bug in mql4.
Thanks, that probably explains it.
So I guess I will have to create a translation table for the symbol names and pass it as an integer instead
Thanks angevoyageur, most helpful.
Basic code works now sending simple structure witk "codifed" symbol name from MQL5 to MQL4. Several details left to work out
Thanks, that probably explains it.
So I guess I will have to create a translation table for the symbol names and pass it as an integer instead
Thanks angevoyageur, most helpful.
Basic code works now sending simple structure witk "codifed" symbol name from MQL5 to MQL4. Several details left to work out
Answer from ServiceDesk :
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Maybe I am misundestanding something.
The example with sending MqlTick info over named pipes made me try adding tho the CNamedPipes mqh class and send a structure of my own design.
Excatly the same code compiles ok on new MQL4 and code executes. could not fully test functionality on MQL4
compiler error messages:
"outtrade" - invalid parameter for import function
"intrade" - invalid parameter for import function
The complete cnamedpipesIE is also attached
Update:
Code works between two "modern" MQL4 accounts except for the string part (symbol name) . The doubles and the datetime works ok.