1

im getting this error back from my script line 47: The arguments 'maxval', 'minval', and 'step' cannot be used with the input() function. You can use the input.int() or input.float() functions to specify a range of input data values.

line 47 rsiOverbought = input.int(60, title = "RSI Overbought", minval = 0, maxval = 50, type = input.integer)

Bjorn Mistiaen
6,9553 gold badges24 silver badges47 bronze badges
asked Oct 18, 2021 at 19:17

1 Answer 1

3

In Pine Script V5 there is no type or minval parameters of input() function. You need to specify type of the input by calling corresponding function -- input.int() for integers, input.float() for float values.

Correct syntax is:

input.int(defval, title, options, tooltip, inline, group, confirm) → input int

or

rsiOverbought = input.int(60, title = "RSI Overbought", minval = 0, maxval = 50)

https://www.tradingview.com/pine-script-reference/v5/#fun_input{dot}int

answered Oct 19, 2021 at 6:24
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.