By default, the Position mode on the exchange is one-way. Veles bots only work in the “Hedge” Position mode. This mode allows you to run two bots on the same trading account simultaneously in the same pair with different algorithms (that is, for example, TON Long and TON Short at the same time). Two independent positions will be opened, each bot will control only its position without interfering with the second one, and each position will have its own PnL (Profit-and-Loss) indicator.
Important! Bots check and set the Position mode at startup. But if the “One-way mode” is enabled on the account and there are open positions and orders, then the exchange will not allow you to change the position mode. Therefore, the bot will stop with an error, and the position will need to be switched manually. The changes will take effect only after all positions are closed.
To switch the Position mode, open the “Settings” for your trading account on the exchange (usually “Gear” button at the top right corner) and select the appropriate item (“Position mode”->”Hedge Mode”).