On the Veles platform, you can set your bot to close a deal by indicator signal. From the same set of filters that is available to start the bot, you can select a filter to close the deal.
For example, if the user launch the Long-bot for trading in a channel (Keltner channel, Bollinger Bands), then when the asset price approaches the lower border of the channel, the bot will open a position. When the price reaches the upper border, the bot will automatically close the position and fix the profit.
Thus, if you run two bots based on the channel indicator – one for long and one for short – you can build the mechanism of position auto-reversal. Always check each bot from this pair on the backtest to assess its profitability.
To use the indicator as a trigger for closing a position, select the Signal tab in the Profit block.
As a filter, you can set any available indicator or a combination of them, an alert or a TradingView strategy, or a price parameter.
Important! To ignore the exit signal when PnL of the position is not sufficient (because the indicator can give the signal even when the PnL of position is still negative), activate the “Minimum P&L” function. Then the bot will fix profit only when it exceeds the value specified in the setting.
The minimum value that can be specified starting from 0.1%.