READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Show Confirmation Box on Signal

1 replies

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

10 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, 127 replies.

Visit profile

10 years ago #138205

ok, thanks

0

Viewing 1 replies (of 1 total)