I am not sure if I understood your query. But if you want to close your trading position when a target percentage profit is reached then you can do that in Stockalyze. Please see attached image that shows the exact field in backtesting dialog where you need to supply the target value.
If there is anything else, please feel free to ask your question.
If there is anything else, please feel free to ask your question.