'Problem to convert pinescript v4 code to v5
I need to convert this line to v5, its written in v4. The options section has problem. When ı try to compile it says "The 'input' function does not have an argument with the name 'options". I know it looks easy but ı am new to coding. Thanks in advance!
mav = input(title="Moving Average Type", defval="VAR", options=["SMA", "EMA", "WMA", "TMA", "VAR", "WWMA", "ZLEMA", "TSF"])
Solution 1:[1]
The input() function needs to be changed to input.string() for this to work, inputs have been changed in Pine v5.
Also note that Pine has a converter that can convert v4 scripts to v5 automatically.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | beeholder |
