Download MetaTrader 5
To add comments, please log in or register
Do you need OpenCL? MQL5 can provide it!
S Michael Tremante
194
S Michael Tremante 2014.07.28 22:54 
When I drag it to the chart it does everything it is supposed to do except execute buy on the chart.  Live trading is checked.  Script is attached.  Please advise, thanks.
Files:
qjol
3243
qjol 2014.07.28 23:12  
what GetLastError you get ?
S Michael Tremante
194
S Michael Tremante 2014.07.28 23:33  
qjol:
what GetLastError you get ?

I get nothing after I OK:"Are you sure you want to place this buy order?"
qjol
3243
qjol 2014.07.29 02:32  

is Ask manual confirmation checked ?

if so, why ? try without it

 

S Michael Tremante
194
S Michael Tremante 2014.07.29 10:00  
qjol:

is Ask manual confirmation checked ?

if so, why ? try without it

 Makes no difference, checked or unchecked..same result.

qjol
3243
qjol 2014.07.29 10:07  
change Print with Alert and report the GetLastError
S Michael Tremante
194
S Michael Tremante 2014.07.29 20:16  

Thanks..sure helped and gave me a tool.  Check out the attachments.  It stops before this:

if ((Lots < 0.01&&MicroOrdersAllowed) || (Lots < 0.1&&MiniOrdersAllowed&&MicroOrdersAllowed==false))

S Michael Tremante
194
S Michael Tremante 2014.07.29 20:18  
I forgot...first it gave me error 4109 but I couldn't find anything specific on it.
qjol
3243
qjol 2014.07.29 20:34  

4109

ERR_TRADE_NOT_ALLOWED

Trade is not allowed. Enable checkbox "Allow live trading" in the Expert Advisor properties

S Michael Tremante
194
S Michael Tremante 2014.07.29 22:13  
Yes, I forgot to enable it the first time but that error never came up again. 
/
To add comments, please log in or register