Example - Pruning

Example - Pruning

  • Goal: I want to close the oldest and newest open trades when there are 6 or more open trades in the buy or sell direction.
  • How-to: Here is an example EA configuration how to achieve the above:
    1. Start Pruning at Trade Count in a Direction = 6
  • Description: When there are 6 or more open buy (or sell) trades and the last topup trade retraced to the previous level then the EA closes off the first and the last (i.e. the oldest and the newest) buy (or sell) trades provided that they can be closed in a way that the combined profit and loss amount of the two closures would be around zero. This may involve closing only a part of the first or the last trades.