Start Pruning at Trade Count in a Direction
Start Pruning at Trade Count in a Direction
The number of open trades, in either buy or sell direction, when to start pruning for that direction. The EA looks for opportunities to reduce the number of those open trades once this trade count is reached.
The pruning always picks two open trades which are in the same direction (both buy or sell). When the most recent topup trade retraces to the previous topup entry level the EA closes that topup and the initial (or oldest) trades. The EA may close only a part of an open trade as it aims for a combined outcome around zero amount as much as possible. While the zero combined outcome is desired this may not be achievable due to the minimum and stepping lots size requirements by the broker, also due to various dynamic broker charges like swaps and commissions, along with market execution side fills and slippages. If the EA deems that the two trades cannot be closed with a near zero combined outcome then the closure is postponed to a later time.
In order to turn off pruning set this parameter to zero.
Refer to the examples for more details.