The Expert Advisor is designed for pair trading of 2 instruments with high positive or negative correlation. It is possible to automatically balance instrument lots depending on tick instrument value. Therefore, it is recommended that you use no less than 0.05 base lot. The function of shares taking into account the number of knees and multiplication factors and adding lots is built in. The divergence is the distance between the instruments with the divergence crawl. Trades can be opened when this happens. Close trades on loss, drawdown, or breakeven.