I want to fix the error of an indicator, statistics section in Tradingview.

Job ID: 33009719

Budget: $8 – $15 USD

If the price does not reach any target 1 and there is an "opposite" signal, it calculates it as if it was a stop loss.
I am looking for someone to fix this error.
Related categories: PHP Algorithm Metatrader Mathematics