Hello.
Looking to see if a strategy in lua, can be developed or there is something already developed to close only positions in profit and then reduce the loss amount on losing trades by the profit on closed positions in profit.
For example, 3 open long positions on a symbol.
at close of bar,
1. Position in profit, close the position.
2. Reduce the oldest position in loss by the profit on closed trade.
Thanks in Advance,