You can convert v3 script to v4 using our conversion utility. First, you must open your saved v3 script in the Pine editor and press the “Convert to v4” button.
If the conversion is successful, you’ll get the converted v4 code in the editor. Otherwise, you will see errors in the console under the editor explaining the reasons for the failure.
You might see warnings from the converter in the console, even if the conversion is successful. They can be caused by some differences between v3 and v4 syntax. We recommend paying close attention to conversion warnings.