Download MetaTrader 5

Experts: Wipeout

To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
MetaQuotes Software Corp.
Moderator
181154
MetaQuotes Software Corp. 2012.01.19 06:34 

Wipeout:

Closes all orders when total cash profit in the account is a certain value.

Author: Tonny Obare

MQL4 Comments
16319
MQL4 Comments 2012.01.19 14:56  

Where is your code, Dude ?

Tjipke de Vries
6315
Tjipke de Vries 2012.01.20 12:01  

Can't be used this way....

If there are more then one trades to close it will fail.

It is trieing to close all the trading pairs at prices for the symbol the EA is attached

MQL4 Comments
16319
MQL4 Comments 2012.07.17 07:57  
Tradefx19:

Where is your code, Dude ?


Scrap the code and start over--redundancy, unnecessary coding and function calls, and coding will not produce accurate results.
Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2013.06.12 14:12  

Counting up in a loop where you delete or close orders will mean you miss some of the orders . . .

  for(int i=1; i<=OrdersTotal(); i++)          // Cycle searching in orders

 More info here:  Loops and Closing or Deleting Orders

To add comments, please log in or register