If anyone is interested, I forked a repo on Github to add support for trading platform code and gpt models, its not perfect, but it does pretty well, particularly when using the gpt-4-1106-preview model.
I can add more languages to it if anyone has a suggestion.
PineScript doesn't translate too well though, something I'm working on.