Disliked{quote} Hi cja, Could you please change condition to monitor total order count buy and sell orders only. If buy orders and sell orders are equal then close all orders. please include Magic number option as well. So if there 12 buy orders opened and sell orders eventually reached 12 then both buy and sell orders equal each other hence are closed regardless of profit or loss. Cheers.Ignored
I thought it best to start a new thread for this EA as it has been coded for a particular way of managing trades as requested by claypot. This EA does not place trades it is designed to manage existing trades placed by other EA's or manual trades for either one Pair or the whole MT4 platform. Basically the EA Closes trades after the activation number has been reached and then when the Buy and Sell trades are of an equal number the Close function activates and shuts all the trades.
The Open trades are closed in a set order. The first trades close before the last trades. The Pending orders only close after the last Open order has closed this is done in this order because it is more important to close Open trades first then the Pending orders to potentially maximize/minimize the profit/loss .
Please do not immediately use this EA on a Live account first get used to how it works first. I recommend that you load the EA onto a chart then setup how many trades you want as the EA activation point, whether you want to include Pending orders in the closes, trade the current chart or the whole platform, a Magic number if required and perhaps select a Display color then turn the EA ON. I ask that you be very very careful as this EA has the potential to Close all the trades on your MT4 trading platform. Use it at your own risk.
See the below mp4 which will show some basic functions of the EA.
NOTE : The name of this EA cannot be changed in any way or it will not work
Attached Image
Attached File(s)
Trades Equal CloseAll.ex4
37 KB
|
247 downloads
Attached File(s)
EQ ea.mp4
304 KB
|
228 downloads
Trade what you see not what you hope