Download MetaTrader 5

Display MessageBox

To add comments, please log in or register
Improve your rating. Execute orders in Freelance service!
Tony2015000
9
Tony2015000 2015.10.13 05:28 

Hi there,

I have been experimenting with coding in mq4 and my purpose is to trigger a messagebox if a particular condition is true.

This is the code I am struggling with....

First in the global section I have declared the messagebox variable...

int MessageBox(
string text,
string caption,
int flags

);

code...

more code ....

Then I try to call the function if a condition is met..

if(ExtTenkanBuffer[i]==ExtKijunBuffer[i])

    MessageBox("Check Chart", "Test", 0);

The compiler throws an error as attached...

Please advise.

Thx

To add comments, please log in or register