Buttons an a Chart

 

Hello!

As I mentioned in the subject, i wan't to place buttons on a chart.  I know that there are similar posts on this forum, but i can't find the answer to my question.

I think that buttons must be provided in such a .dll file, right? And use it in a mql4-script?

For learning and testing proposes i have implemented such an dll in an mql4 script and provided a simple method called "Sum": 

#include "stdafx.h"

int Sum (int a, int b) { 
        return (a+b);
}

 In a mql4-file it works fine by dragging the script on the chart.

But I don't know how to provide a Button in the .cpp-file. Can someone of you give me a tip? 

I am using Metatrader 4 (i must use this version) and Visual Studio 2012. 

Best regards!

roundabout 

 
 
roundabout:

Hello!

As I mentioned in the subject, i wan't to place buttons on a chart.  I know that there are similar posts on this forum, but i can't find the answer to my question.

I think that buttons must be provided in such a .dll file, right? And use it in a mql4-script?

For learning and testing proposes i have implemented such an dll in an mql4 script and provided a simple method called "Sum": 

 In a mql4-file it works fine by dragging the script on the chart.

But I don't know how to provide a Button in the .cpp-file. Can someone of you give me a tip? 

No idea,  when you figure it out please share it,  the DLLs in the post that WHRoeder  links to above are no longer supported and don't seem to work in recent versions of MT4.
 

Sorry theres no answer to my question and the demonstrated mt4gui.dll is no longer available...