Reply

Show Confirmation Box on Signal

1 replies

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #115067

If you want to use your EA for semi-auto trading ie. receive a confirmation YES/NO dialog, you can do it as shown in attached screen. You have to edit EA MQ4 file and add the highlighted code into your rules right before sqOpenOrder()

ret = MessageBox("Do you really want to open the position?", "Trade confirmation", MB_YESNO|MB_ICONQUESTION|MB_TOPMOST); 
if (ret == 6) sqOpenOrder(.....

Also at the beginning of the code you have to define (type in) the ret variable. See screenshot

0

msophe

Subscriber, bbp_participant, community, 124 replies.

Visit profile

7 years ago #138205

ok, thanks

0

Viewing 1 replies (of 1 total)