Download MetaTrader 5

MT4 with EA on my VPS runs...runs...runs then stopp -> dead

To add comments, please log in or register
Ulrich
77
Ulrich 2013.11.20 16:00 

Hi,

i have a vps with a demo mt4 installation frim gkfx. It runs since yesterday with 4 simple eas.

Everthing seems to be great 20-25 trades all in all what i expected (checked with my ipad at work). New stopp losses etc. everthing is okay.

Then i checked the messages at experts again and i see that there is no more action since 16 o clock.

But there should be some action...

The charts have still action but all eas doesn't do something, just if they are completely dead. I even can't start them again.

I close the mt4 and reopen it again all starts regulary... and the eas runs again.

I had this issue the second time.

What could be the problem?

Carl Schreiber
6670
Carl Schreiber 2013.11.20 16:02  
Have you checked the expert/log e.g. for zero divide?
Ulrich
77
Ulrich 2013.11.20 16:49  

Last entries are:

15:46:26 '510366': request was accepted by server
15:46:26 '510366': request in process
15:46:27 '510366': order was opened : #11221585 sell 0.40 DAX30 at 9179.0 sl: 9190.5 tp: 0.0

15:59:48 '510366': order buy 0.40 WS30 opening at 15981.0 sl: 15958.9 tp: 0.0 failed [Common error]

zero divide should not be possible in my ea.. only if they give me an ask or a bid with 0...

Alain Verleyen
Moderator
31090
Alain Verleyen 2013.11.20 17:03  
AiGelb:

Last entries are:

15:46:26 '510366': request was accepted by server
15:46:26 '510366': request in process
15:46:27 '510366': order was opened : #11221585 sell 0.40 DAX30 at 9179.0 sl: 9190.5 tp: 0.0

15:59:48 '510366': order buy 0.40 WS30 opening at 15981.0 sl: 15958.9 tp: 0.0 failed [Common error]

zero divide should not be possible in my ea.. only if they give me an ask or a bid with 0...

Such logic leads to problem...in programming, never presume but prevent.

Fix your code.

Ulrich
77
Ulrich 2013.11.20 17:10  

OK before division i build in the the security gate...

only to do it

if (Ask != 0 && Bid != 0)

Simon Gniadkowski
Moderator
18002
Simon Gniadkowski 2013.11.20 17:12  
AiGelb:

OK before division i build in the the security gate...

only to do it

if (Ask != 0 && Bid != 0)


Are you getting a divide by zero error ? if not then the issue is elsewhere.
Ulrich
77
Ulrich 2013.11.20 17:16  

No can't see such an error in the log.

I had just the common error

15:59:48 DOW WS30,M5: OrderSend failed with error #2

But what i read about this... should be a broker prob ?!

whroeder1
14742
whroeder1 2013.11.20 17:45  
15:46:27 '510366': order was opened : #11221585 sell 0.40 DAX30 at 9179.0 sl: 9190.5 tp: 0.0
15:59:48 '510366': order buy 0.40 WS30 opening at 15981.0 sl: 15958.9 tp: 0.0 failed [Common error]
Post your code - there are no mind readers here.
To add comments, please log in or register