How to use deal closure by the indicator signal? – Veles Help Center

How to use deal closure by the indicator signal?

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 launched the bot in Long and set a channel indicator (Keltner Channel, Bollinger Bands, etc.) as an closing signal, then when the price crosses the upper border of the channel, the bot will automatically close the position and fix a profit.

If the user has launched the bot in Short and set the channel indicator as an closing signal, then when the price crosses the lower border of the channel, the bot will automatically close the position and fix the profit.

Important! To ignore the closing 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” option. Then the bot will fix profit only when PnL exceeds the value specified in the setting.

The minimum value that can be specified starting from 0.1%. But we do not recommend setting very small values. Since the closing of the deal will be made by market order (which is subject to squizes), a low PnL may lead to frequent closing of the deal at a loss!

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.

Veles cooperates with exchanges!

Register using our links and get maximum bonuses from exchanges.