stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

EA asks for a manual confirmation
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=667
Page 1 of 1
Author:  zen4x [ Wed Jul 04, 2012 3:13 pm ]
Post subject:  EA asks for a manual confirmation

Hello all. Just a simple question, I hope, lol.
Is it possible to make an EA that ask for a manual confirmation to open a trade ?
I wanted to know how I can do if I need to double check the EA before to confirm the operation since that might be occasions where the signal could be faulty due particular market conditions.
What trading functions I should use ?
Is enough to tick the checkbox under Option menu "Ask manual confirmation " ?

Regards, Francesco.
Author:  NeoTrader [ Wed Jul 04, 2012 3:41 pm ]
Post subject:  Re: EA asks for a manual confirmation

hi francesco,

go to the Menu Tools->Options and select the Tab expert Advisors.
There you can select Ask manual confirmation under the Allow live trading entry...

hope this helps...

happy trading,

NeoTrader
Author:  zen4x [ Wed Jul 04, 2012 3:56 pm ]
Post subject:  Re: EA asks for a manual confirmation

So that's the way....no funny functions to code...I code normally to open a position and after that when I set "Ask manual confirmation" Crappy T4 should send me a pop window to check "ok" or "cancel"
Thank you Neo for your reply.
Author:  f-trader [ Thu Jul 05, 2012 8:47 pm ]
Post subject:  Re: EA asks for a manual confirmation

I do it this way:

Code: Select all

	
		string  msgtext = "You really want a market order ?";
		int ret = MessageBox(msgtext, NULL, MB_YESNO|MB_ICONQUESTION);
		if (ret==IDNO) return(0);  // We want no market order
	
After this snippet the OrderSend is coded.
It will execute only when the user clicks on YES button.
All times are UTC Page 1 of 1