I am Agon Xheladini web developer.
My client is an forex trader/broker and i have developed an website for him.
What he wants now is to display his MT4 results and history at his website.
Since i am new with this problem it will be good if someone gives me infos on that how to develop an api that will communicate with MT4 and take those date from them to display on our website.
If he doesn't have access to them then there is not much that can be done, no?
The bare minimum is the account number, pass and server details for each... No way around that. API or not.
There is a back office where all those accounts can login and also there is an setting part where they can give their details (account number, pass,..) and this api should display their results on this back office.
By the way i just want to create an php api to communicate with MT4, do you have any informations if i can do this or not ?
[...] i just want to create an php api to communicate with MT4, do you have any informations if i can do this or not ?
I am not aware of any PHP API for MT4. It might be possible to create such an API, but the functionality u are asking for does not exist in MT4 in the first place - u can't log into different accounts via MQL4 (it's not supported natively). So u also can't automatically publish from different accounts from within a single Terminal. I imagine this sort of functionality exists in the MT4 server/back-end... U need to talk to MetaQuotes about that.
Please me too have same problem, I have made my own website for providing signals but I don't know can I connect mt4 to my website by the way in which I open position on mt4 it appears on my website on members area, please if anyone have idea about that, help me
I can solve your problem.
To solve the problem, it needs to write 3 software:
- an EA in MQL4 to write in file the open positions in dedicated folder;
- a software that reads this file and send the open position to web site;
- a software in PHP that receive this data and save it on db MySql
I can also write the php page that read this data in db MySql and publish it.
It's a work.