The Expert Advisor increases the volume of an open position if profit in points from the last trade increases a threshold fixed in the EA inputs.
The data on addings are stored in a string comment to a position in the following format: number of addings/last trade price/last trade volume.
Trades are made when a new bar appears.

Fig. 1. Examples of trades on the chart
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/16831
Exp_TralingStop
The Expert Advisor moves a stop loss to a predefined fixed distance from the current price.
Scalpel EA
Scalpel EA for MetaTrader 5
Waddah_Attar_Trend_Alert
Waddah_Attar_Trend indicator features alerts, emails and push notifications.
EMA CROSS
Crossing of the two iMAs.