If your trading bot is trying to sell a position, and your strategy indicates that it should buy the same currency, it will not sell your existing position even if it hits your chosen Take profit percentage or Trailing stop loss settings when 'Hold assets when new target is the same' is enabled.
You can find this setting in the Base config under the tab 'Strategy'.