Inspired by the MT5 article, but there are some major differences in the methodologies used. Broadly speaking, the method used here is much lower-volume, but non-stateful: it does not assume a continuous unbroken connection between sender and receiver, and it does not use blocking calls which require an infinite loop in start().
See the readme.txt file for instructions on how to set up the demo.
Excellent, say can you expand the mqh includes to pass integers and float values too???? That would be greatly appreciated!!
tradingbigboy
Excellent, say can you expand the mqh includes to pass integers and float values too???? That would be greatly appreciated!!
Wow, three months on, an expression of interest in this...
It's simplest to pass numeric data simply by casting it to a string and then back again. For example, the sending code uses something DoubleToStr() to convert the number to a string for transmission with SendPipeMessage(). The receiving code then uses StrToDouble() or StrToInteger() to convert the data back again. Not a highly efficient way of passing numeric data, but that shouldn't matter in the context of the local machine.
Wow, three months on, an expression of interest in this...
It's simplest to pass numeric data simply by casting it to a string and then back again. For example, the sending code uses something DoubleToStr() to convert the number to a string for transmission with SendPipeMessage(). The receiving code then uses StrToDouble() or StrToInteger() to convert the data back again. Not a highly efficient way of passing numeric data, but that shouldn't matter in the context of the local machine.
thanks!!
tradingbigboy
thanks!!
tradingbigboy
One more question, if I want just the latest message from the pipe server is that going to be in array position 0??
TBB
One more question, if I want just the latest message from the pipe server is that going to be in array position 0??
I realize this is a super old post, but I'm just getting into this sort of thing.
I downloaded the files, and am having fun playing with them.
I changed the message from Hello! to Bid... and I created a Comment that displays the Bid on the Chart.
Having done that, I have to say, watching the sending broker's platform and the reciever's platform, I notice a delay in when the data gets to the reciever. Do you know of a way to speed this up?
Also, I notice there are times when the Comment displays 0.00000... why would that be?
Any ideas would be helpful to this newbie.... Thanks
Inspired by the MT5 article, but there are some major differences in the methodologies used. Broadly speaking, the method used here is much lower-volume, but non-stateful: it does not assume a continuous unbroken connection between sender and receiver, and it does not use blocking calls which require an infinite loop in start().
See the readme.txt file for instructions on how to set up the demo.I am working with the named pipe files that I down loaded from this post.
Can you tell me how to send more data points at the same time? Right now all it sends is "Hello".... which I have changed to Bid. But I would like to include more data... maybe Ask, time, spread, etc...
Thanks for your help.
Inspired by the MT5 article, but there are some major differences in the methodologies used. Broadly speaking, the method used here is much lower-volume, but non-stateful: it does not assume a continuous unbroken connection between sender and receiver, and it does not use blocking calls which require an infinite loop in start().
See the readme.txt file for instructions on how to set up the demo.I am working with the named pipe files that I down loaded from this post. [...]
It's a useful exercise and demonstrates some useful techniques. But, for real-life use, named pipes wouldn't be top of my list of ways of communicating between MT4/5. I'd use something like <link removed by moderator> instead.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Inspired by the MT5 article, but there are some major differences in the methodologies used. Broadly speaking, the method used here is much lower-volume, but non-stateful: it does not assume a continuous unbroken connection between sender and receiver, and it does not use blocking calls which require an infinite loop in start().
See the readme.txt file for instructions on how to set up the demo.