The Swing is a built-in indicator in NT. Add it to your charts with a strength of 1 for example and you’ll see the swing highs and lows. Standard it’s a bullet sign but I assume you can change that.
If you really want an arc on that, indeed, it should be possible to ask this to GPT. The errors the code give can be solved too, normally.