Pine Script v6 Fixer

Input
Fixed Output
Ctrl+Enter to run
Changes Applied

Paste Pine Script code and click Analyze & Fix…