Expert Advisors: MT5 DDE - Server

 

MT5 DDE - Server:

Export MQL5 live data to Excel (DDE)

Author: Alexander Piechotta

 

Do you have a version for MT4?  I re-wrote the example EA for MT4 but I'm getting an error.

2012.12.04 07:34:06 dde EURUSD,Weekly: dll calls are not allowed; 'user32.dll'-'FindWindowW'

Mike 

 

Oops my fault.  I had allow DLL calls.  But now I get the Alert cannot find window MT4.DDE.2.  I started the MFC DDE server app and can see the window but I still get the alert.

 

Hi, I need  send quotes to excel sheet, do you have any Examples???

 

best reggards.

 
fxyekim:

Do you have a version for MT4?  I re-wrote the example EA for MT4 but I'm getting an error.

2012.12.04 07:34:06 dde EURUSD,Weekly: dll calls are not allowed; 'user32.dll'-'FindWindowW'

Mike 

Dear FXyekim,

Can you please share the MT4 version?

Thank you. 

 

Hi Thanks.

The Programm runs, but i cant understand how the the program works. I would be happy if you have any expressions for me.

Martin

 

INCREMENT THESE LINES

double LAST = SymbolInfoDouble("EURUSD",SYMBOL_LAST) // for eurusd (example) ,

in // Check & Add Item DDE:

if(!CheckItem("C","D"))

{ if(!AddItem("C","D")) return; } in // Check & Add Item DDE

in // Set Item Value DDE

SetItem("C","D","LAST:"+DoubleToString(LAST,5)); in // Set Item Value DDE

 

Hi Alexander Piechotta,

 

I am using Metatrader 5 and I would like to send data to Amibroker, could you please help me ?

 

thank you so much,

 

MartinScholz:

Hi Thanks.

The Programm runs, but i cant understand how the the program works. I would be happy if you have any expressions for me.

Martin

 

Hi All,

 

Is there any function for  High, Low, Open, Close please ? 

 if(!CheckItem("BID","EURUSD")) AddItem("BID","EURUSD"); works

 if(!CheckItem("LAST","EURUSD")) AddItem("LAST","EURUSD"); works

 if(!CheckItem("ASK","EURUSD")) AddItem("ASK","EURUSD"); works

========================== // ===================== 

if(!CheckItem("HIGH","EURUSD")) AddItem("HIGH","EURUSD"); ?

if(!CheckItem("LOW","EURUSD")) AddItem("LOW","EURUSD"); ?

if(!CheckItem("OPEN","EURUSD")) AddItem("OPEN","EURUSD"); ?

if(!CheckItem("CLOSE","EURUSD")) AddItem("CLOSE","EURUSD"); ?

 

Any help very appreciated.

Thanks in advanced.

ychaim 

 

Hello,

I would like to use the DDE server with Metatrader 5.

Unfortunately, I don't understand how to start it.

Can you give me some instructions?

Thank you for your efforts.

With kind regards

JFBe

 

Is there no EXCEL file DDE-sample.xls in the terminal directory?

Then all you have to do is start the server from the zip file and make the EA on the chart and the correct entries in the cell in Excel.