Download MetaTrader 5

Closing all trades in an EA and re-starting.

To add comments, please log in or register
Publish your article. Millions of traders are looking for good ideas!
ForexTrader17
1041
ForexTrader17 2015.11.20 01:27 

Is it possible in MT4 to have a script monitor profit on one pair or the entire account and when that is reached shut down the EA for the day. Then at a certain time re-start the EA automatically.

Thank you. 

Biantoro Kunarto
14896
Biantoro Kunarto 2015.11.20 01:57  

You can create an EA that close all trade when the profit reach $ XXX profit.

And for "Then at a certain time re-start the EA automatically", you must include a restart function in your EA

ForexTrader17
1041
ForexTrader17 2015.11.20 02:42  

And it can close by profit on one chart or on entire account, correct? And where do I attach this EA? To all charts? And where do I find the restart code for EA?

Thank you. 

Biantoro Kunarto
14896
Biantoro Kunarto 2015.11.20 06:36  

Hi, for your question :

  • You can choose close by profit on one chart ( Symbol ) or on entire account.
  • You can attach this EA on any chart ( no need to attach to all chart)
  • You must write the restart code in to an EA.
ForexTrader17
1041
ForexTrader17 2015.11.20 22:07  

Thank you. Can you do it? How much will it cost to write something like this?

Thank you. 

Marco vd Heijden
Moderator
4704
Marco vd Heijden 2015.11.20 22:19  

Please make WBS or Flow chart.

Be exact about what it needs to do and what it may not do.

Biantoro Kunarto
14896
Biantoro Kunarto 2015.11.21 01:21  
ForexTrader17:

Thank you. Can you do it? How much will it cost to write something like this?

Thank you. 

Hi, I already sent you a message.
To add comments, please log in or register