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

 

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?

 
Have you checked the expert/log e.g. for zero divide?
 

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...

 
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.

 

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

only to do it

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

 
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.
 

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 ?!

 
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.
Reason: