Ben Tradior
Ben Tradior

Reputation: 1

Getting Error while trying to combine indicators

Whenever I try adding my indicator to my chart I get this message from tradingview - Add to Chart operation failed, reason: line 8: 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. The code on line 8 is Multiplier = input(title="Trend Sensitivity", type=input.float, step=0.1, defval=3.0) can anyone please help with what im doing wrong

Upvotes: 0

Views: 591

Answers (1)

vitruvius
vitruvius

Reputation: 21139

Isn't the error message pretty clear?

You cannot use the maxval, minval, and step arguments with the input() function.

You should use input.float() instead.

Multiplier = input.float(title="Trend Sensitivity", step=0.1, defval=3.0)

Upvotes: 2

Related Questions