I was assuming we were talking about interfacing an EA to a broker and making use of the MQL framework. That is, after all, the subject matter of this forum. In the context of coding within the MQL framework, it is impossible. The MT4 server platform identifies expert vs manual trading messages to the broker.
I thought you were still responding to GreatShore's suggestion of simulating mouse clicks.
Strictly speaking, if you could get the documentation of the MT4-to-broker protocol, or reverse engineer it, then you could send automated trades as manual trades. So that's not absolutely impossible either. (But it would again be a lot of work for no obvious reward.)
Please tell me no-one would dream of writing some MT4 screen-scraping DLL to call from an EA.
Well, GreatShore seems to be dreaming of it...
JJC - I was still responding on that point.
Anything's possible in theory. However, yes, the GreatShore screen-scraping option is impractical at best. And impossible within the MT4/MQL framework.
Whilst out doing the gardening, strangely, enough I also came to the conclusion that, is one were to attempt to construct something outside of the framework, then to alter the "I'm an EA" bit in the client server protocol would be by far the more elegant of the two (impractical) solutions.
Bottom line - if your broker starts playing silly-buggers with you (and its not easily dealt with by implementing something like a stealth stoploss), then rather than finding some half-baked, long-winded way of playing silly-buggers back, one's investors would prefer a broker review.
Yes, it's a lot of work simulating mouse clicks...hacking client-server protocols...etc.
On the other hand, a broker offering low spreads on EURGBP and EURCHF for scalping in Asian session, 5-digit pricing, very low requotes is also hard to find, nearly doesn't exist.
For anyone who is interested - before I can learn Windows programming to simulate mouse click and key strokes of manual trade, currently when my own EA sees requotes from broker, it calls Refresh() and checks if opportunity still exists FOR 3 TIMES.
It seems not so bad this way, though it still can't match demo account performance which never gets a requote.
At least it is a good compromise for now.
Does anyone know MQL4 developers? I want to suggest them making EA completely anonymous.
If you need a good developer's service then I can help.
Simulating clicks and presses is possible.
Write to fuzzfx//at//gmail//com
Write to idiot at . . . .
What have you got?
Well, there's egg and bacon,
egg sausage and bacon
Egg and spam
Egg, bacon and spam
Egg, bacon, sausage and spam
Spam, bacon, sausage and spam
Spam, egg, spam, spam, bacon and spam
Spam, sausage, spam, spam, spam, bacon, spam tomato and spam
Spam, spam, spam, egg and spam
Spam, spam, spam, spam, spam, spam, baked beans, spam, spam, spam and spam.
(Choir: Spam! Spam! Spam! Spam! Lovely Spam! Lovely Spam!)
Or Lobster Thermidor aux crevettes with a mornay sauce
served in a provencale manner with shallots and aubergines
garnished with truffle pate, brandy and a fried egg on top and spam.
Have you got anything without spam?
Well, the spam, eggs, sausage and spam
That's not got much spam in it
Idiot is one here. it's you alone.
Moders, please ban him for off topic
I chatted online with one broker who welcomes Forex robots - www.fxcbs.com.
Interesting enough, operator said they can still tell if it is an automated trade or manual trade even an EA uses blank trade comment and zero magic number. That is their claim.
I think it's unfair treatment. Does anyone know MQL4 developers? I want to suggest them making EA completely anonymous.