The custom event can carry only very tiny data. The MQL4 event data is limited to three numbers (short, long, double) and a string (up to 65 characters), inclusive the event identification. Not really much for working with objects.
I would like to append a custom structure to the custom event.
How do you append more data to the event? (a question for coders, not the local spammers). I do not intend to use a DLL for passing a pointer of the structure. I am afraid that I cannot avoid storing the data structure to an MQL file, which is somewhat ugly design.
If you can not hold you to display openly your contempt for most members of this forum, there is no need to waste your time here. This is my last warning.
It is your private fight, Angevoyageur.
It is not me, it is you who keeps offending people here. You may remove this topic, I am not interested in nervous offtopic discussions with a moderator.
It is your private fight, Angevoyageur.
It is not me, it is you who keeps offending people here. You may remove this topic, I am not interested in nervous offtopic discussions with a moderator.
Just a reminder of the rules, so each one can judge if it's a "private fight" :
- Please, be polite communicating in this forum. Any posts which may offend other visitors of the forum are forbidden.
- Discussions of any banking, brokerage or other financial companies or institutions are prohibited. Such messages are subject to removal
- Any discussions about personal relations between the participants of the forum are forbidden.
- Any use of obscene expressions is forbidden.
- Posting of advertising messages, spamming and flooding are forbidden.
- Numerous breakings of rules, ignoring moderators' remarks and furthermore open disrespect for administration will result in banning from the forum without any explanations.
- The administration has the right to change these rules if necessary.
The custom event can carry only very tiny data. The MQL4 event data is limited to three numbers (short, long, double) and a string (up to 65 characters), inclusive the event identification. Not really much for working with objects.
I would like to append a custom structure to the custom event.
How do you append more data to the event? (a question for coders, not the local spammers). I do not intend to use a DLL for passing a pointer of the structure. I am afraid that I cannot avoid storing the data structure to an MQL file, which is somewhat ugly design.
You can't modify the MQL structure and there is no need to | myObject* gObjects[];
OnEvent(int i){ gObjects[i].OnEvent(); }
Use the number to select your object. Don't try to pass an object to MQL4 only to get it back. |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
The custom event can carry only very tiny data. The MQL4 event data is limited to three numbers (short, long, double) and a string (up to 65 characters), inclusive the event identification. Not really much for working with objects.
I would like to append a custom structure to the custom event.
How do you append more data to the event? (a question for coders, not the local spammers). I do not intend to use a DLL for passing a pointer of the structure. I am afraid that I cannot avoid storing the data structure to an MQL file, which is somewhat ugly design.