Any PHP or perl programmers here ?

 

One week ago i started to develop an interface between EAs and PHP, throug a local webserver (127.0.0.1).

but it works too on a real webserver.

you can open and close orders via the browser/webserver and receive data in your browser about the current status etc.

its not secure, no https, no password at the moment, its just for testing and finding new ideas.

its possible to write EAs in PHP, even you can create Graphs based on the data you receive from the EA.


so my question, anyone is able to programm PHP/Perl or is interested in this idea ?


greetings, meikel

 
I haven't programmed php in some time but that's a great project you have there. Congrats.
 

Great idea!

I code on PHP as well, I like the idea a lot. Hit me up on my email below if you would like to discuss it...


thank you

automatedfx@gmail.com

 

thanks for the response.

looks like as if here are not much php/perl programmers ;-)

the first code was for testing, badly hacked.

i'll try to code a simple EA and a simple PHP with a little documentation inside, so that every programmer who is able of mq4 and php can understand it.

give me some time ...

in the meantime, search for "QuickPHP", its a local webserver which includes phpxxx.dlll, ideal for testing

in the libraries here, download the "http51" package


greetings

 
meikel:


so my question, anyone is able to programm PHP/Perl or is interested in this idea ?


greetings, meikel

Yes, No.


CB

 
cloudbreaker:

Yes, No.


CB

LOL

you dont need to code in php or perl.

such a interface is useful for many traders, because traders can monitor their EA/Account, running at their PC from every internet-connected PC simply via a browser .

if

(you always sitting in front of your own PC || close all orders before you go away from your PC)

{sure, you dont need that...}

;-)

 

great job

 

Nice Informative thread but we can further read about this topic on forextradingevo.com. This informative website cover all the matter related to this topic. I hope this type of Informative thread will come again and again.

FOREX TRADING EDUCATION

 

i code in php and perl too. its very interesting project. may i ask how do you connect php and mt4? do you use windows signals or dll or mysql? do you mind to send me a copy of it? regards

taskin

 
fx1.net:

i code in php and perl too. its very interesting project. may i ask how do you connect php and mt4? do you use windows signals or dll or mysql? do you mind to send me a copy of it? regards

taskin

i use the http51.dll and include posted in the codebase to connect to a server.

https://www.mql5.com/en/code/8435


i.e each tick the EA connects to the server with parameter "ask"

http://127.0.0.1/remote.php?User=EA&Action=Ask

the php script responds with the commands, i.e buy,sell,close

each minute(or any other time) a connection is done sending all other data like openorders,close,profit etc

the user connects to the same script and can set commands via links, they are stored in a file on the server til the next connection from the EA and then send to the EA

the EA responds, if the command was executed with succes or wit error

really simple concept.


for testing and developing i recommend the "QuickPHP" webserver which includes the basic php-dlls

http://www.zachsaw.co.cc/?pg=quickphp_php_tester_debugger


but it works also on a real webserver, but that needs security things added like passwords etc.

 

yes concept is simple but i think its reliable. congratulations for that idea. you can offer service for iphone for example to view, close,open positions with that tech.


Just as input for further development (no critic): The only problem may be that php is beeing executed on every tick: tick comes to broker, broker sends to terminal, terminal starts tcpip handshake, webserver starts php addon, php gets the parameters, php executes the script, php responds, mt4 decides. this process may take long for forex on remote server but i can imagine this can be improved somehow.


Do you push timestamp per Ask,Bid to server? i would push timestamp in milisecond area to order the bid,ask because sometimes ticks wil come too fast that server will delay and order the right order of ticks. the milisecond on serverside may be false because webserver starts php and in case many ticks come at same time, the order may get fixed. Thats why EA should pass the localtime in milisecond precisious, so server order them.


Good idea.
Reason: