PyneComp v6.1.3 — your Pine Script comments now carry over into the compiled Python code,…
Features
- Every comment you write in Pine now appears in the compiled code: comments on their own line stay above the line they describe, end-of-line comments stay at the end of their line, and your license/author header goes to the top of the file.
- Comments move along with the code they belong to: an input’s comment follows it into the script’s settings, a
type’s comment follows the class it becomes, animport’s comment stays with the import. - Library documentation written with
//@function,//@param,//@returns,//@type,//@enumand//@fieldbecomes a proper Python docstring of the function or class. //#region///#endregionmarkers become Python fold regions, so you can collapse them in your editor.
Fixes
- The compiled code no longer has double blank lines inside the script body, and a blank line now separates functions defined inside the script, so the output is clean, PEP 8-style Python.