NEW NEWBIE ALERT!!!! Now one about scripts

Dear all,

I created my first script and it works fine, but I don't know how can I add a Yes/No window every time I put it in a chart, as all default MT4 scripts do now. Could please someone give me some hint?

Thank you very much in advance.

landmeister:

Dear all,

I created my first script and it works fine, but I don't know how can I add a Yes/No window every time I put it in a chart, as all default MT4 scripts do now. Could please someone give me some hint?

Thank you very much in advance.

Can you show a screenshot of what you mean ?

Perhaps you mean . . .

#property show_inputs

Sure. This is what we can see when we want to use the "close order" script (Spanish version, sorry).

Script window

It is a tipical confirmation window (yes/no). How can I do that?

Thanlk you

landmeister:

Sure. This is what we can see when we want to use the "close order" script (Spanish version, sorry).

It is a tipical confirmation window (yes/no). How can I do that?

Thanlk you

Ah I see . . . 

Try this function   MessageBox()

Great! Thank you very much.