Will really appreciate some help here.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
The Traget and StopLoss is mentioned in the exit strategy:
strategy.exit("Exit Short", from_entry = "Short", profit = profitpoints,loss = stoplosspoints, trail_points = trailstoploss)
where the "profitpoints and stoplosspoints are hardcoded at the begining itself.