In this code, we want to use 'strategy.position avg price' instead of close for our initial stop loss calculation. Also, chatGPT is not great at math. It's good at translating natural language into code, but it can't do calculus. It got the calculation wrong for our stop loss.