MQL5 VPS disable trading

To add comments, please log in or register
alessandromagno
282
alessandromagno  

Hi guys, i think i've understand the working process of these VPS by synchronizing time after time what i need. I also understand (if i'm not wrong) in my pc mt4 the trading is automatically disabled (enabling to the VPS) to prevent doubled trades.

But what if i need the EA to stop trading for a while (for eg. under high impact news) on VPS? Can i stop and restart my EAs under VPS?

Sergey Golubev
Moderator
106721
Sergey Golubev  

De-attach your EA from the chart (or close the chart) and make a synchromization once again to send this "de-attaching action" to VPS.
Or modify your EA to stop openning new trades during high impacted news events for example ...

Or ... may be - some other ideas ...

Ziheng Zhuang
17628
Ziheng Zhuang  

There is a trick to notify your EA to stop trading.

For example, place a pending order with special comments ,lets say "STOP".

When EA see the special pending order, it will stop trading, and it will continue working  if you cancel the pending order.

alessandromagno
282
alessandromagno  
Thank you guys i'll try!!
To add comments, please log in or register