MT4 Monitor - MT4 DDE in visual basic 6.

 

Hi folks,

I didn't open Visual basic since 2 months; I opened it tonight and converted the "DDE-Sample.xls" to Visual basic with some improvements (a full pairs list).

If you like it, I will make it save the history.

Do you have any suggestions?

Files:
mm.zip  9 kb
 

Any feedback!

I'll be happy for any , even something like: "codersguru, you have made a silly thing"

 

Vb6?

Is the code in VB6?

I think it is a neat app, but I would like to see the source code. Is that the source included in the zip? I couldn't find actual vb code.

Basically, the app re-displays the info from the MaketWatch window via a DDE interface. That would be cool to see the code to do that, but I don't see the use for an end-user..unless I'm just stupid and missing something.

5y

 

The source code is included.

fivewhy:
Is the code in VB6?

I think it is a neat app, but I would like to see the source code. Is that the source included in the zip? I couldn't find actual vb code.

Basically, the app re-displays the info from the MaketWatch window via a DDE interface. That would be cool to see the code to do that, but I don't see the use for an end-user..unless I'm just stupid and missing something.

5y

fivewhy,

Thank you very much . The source code is included in the zip file.

Private Sub Check1_Click()

MsgBox "Coming soon!", vbExclamation + vbOKOnly, "MT4 Monitor"

End Sub

Private Sub Form_Load()

LoadPairs

End Sub

Private Sub TimerCheckBrowsers_Timer()

On Error GoTo err1

TxtDDE(0).LinkTopic = "MT4|BID"

TxtDDE(0).LinkItem = Combo1.Text

TxtDDE(0).LinkMode = 1

TxtDDE(0).LinkRequest

TxtDDE(1).LinkTopic = "MT4|ASK"

TxtDDE(1).LinkItem = Combo1.Text

TxtDDE(1).LinkMode = 1

TxtDDE(1).LinkRequest

TxtDDE(2).LinkTopic = "MT4|HIGH"

TxtDDE(2).LinkItem = Combo1.Text

TxtDDE(2).LinkMode = 1

TxtDDE(2).LinkRequest

TxtDDE(3).LinkTopic = "MT4|LOW"

TxtDDE(3).LinkItem = Combo1.Text

TxtDDE(3).LinkMode = 1

TxtDDE(3).LinkRequest

TxtDDE(4).LinkTopic = "MT4|TIME"

TxtDDE(4).LinkItem = Combo1.Text

TxtDDE(4).LinkMode = 1

TxtDDE(4).LinkRequest

Exit Sub

err1:

TxtDDE(0).Text = "N/A"

TxtDDE(1).Text = "N/A"

TxtDDE(2).Text = "N/A"

TxtDDE(3).Text = "N/A"

TxtDDE(4).Text = "N/A"

End Sub

Public Sub LoadPairs()

Combo1.AddItem "USDCHF"

Combo1.AddItem "USDJPY"

Combo1.AddItem "EURUSD"

Combo1.AddItem "GBPUSD"

Combo1.AddItem "EURJPY"

Combo1.AddItem "EURCHF"

Combo1.AddItem "EURGBP"

Combo1.AddItem "USDCAD"

Combo1.AddItem "AUDUSD"

Combo1.AddItem "GBPJPY"

Combo1.AddItem "GBPCHF"

Combo1.AddItem "CHFJPY"

Combo1.AddItem "NZDUSD"

Combo1.AddItem "EURCAD"

Combo1.AddItem "AUDJPY"

Combo1.AddItem "EURAUD"

Combo1.AddItem "AUDCAD"

Combo1.AddItem "AUDNZD"

Combo1.AddItem "NZDJPY"

Combo1.Text = "EURUSD"

End Sub
 

OK, so it appears that you are using the "LinkRequest" method of the textbox to call data from the DDE server. But this method isn't available in .NET 2.0 and I can't seem to find it anywhere.

If I wanted to connect to a DDE sever in .NET, do you know how I would do that?

 

Nevermind, DDE is no longer supported in .NET

and the LinkRequest method is restricted to just VB prior to .NET

hmmmm, that sucks.

 

Here is a library to use DDE in .NET

http://workspaces.gotdotnet.com/ndde

This seems to be pretty good, does anyone else have a better option?

 

Great efforts!

fivewhy:
Here is a library to use DDE in .NET

http://workspaces.gotdotnet.com/ndde

This seems to be pretty good, does anyone else have a better option?

fivewhy,

Thank you very much for your efforts.

 

App...

Guru...

I used to use Metatrader 3 and take the output from it to import into another program through the use of a DDE...

I don't think that Metatrader 4 provides that out put, at least my program can't seem to locate it...

Is that what you have created here...?

thanks

dave

 
Blaiserboy:
Guru...

I used to use Metatrader 3 and take the output from it to import into another program through the use of a DDE...

I don't think that Metatrader 4 provides that out put, at least my program can't seem to locate it...

Is that what you have created here...?

thanks

dave

dave,

What kind of outputs you want to get form Metatrader 4?

And how did you use DDE with MT3?

 

DDE use

I have a charting program called FCpro and it will pick up from port 16239 the output from metatrader 3

it also will pick up the same from Quote Tracker

I am not too knowledgeable on these things, does that tell you the answer........

thanks

dave

Reason: