CS2724
error The lower default lo is above the upper default hi.
#What it means
input.range takes a lower and an upper default. Here the lower one is larger than the upper one.
#Typical cause
- The two defaults written in the wrong order.
#How to fix it
Swap them so the lower default comes first.
#Example
//@chartscript 1
indicator("RSI band")
const [lo, hi] = input.range(70, 30, "Band")
plot(ta.rsi(close, 14))
hline(lo)
hline(hi)Fixed
//@chartscript 1
indicator("RSI band")
const [lo, hi] = input.range(30, 70, "Band")
plot(ta.rsi(close, 14))
hline(lo)
hline(hi)#Related
- CS2716 — The preset preset gives name the value value, which the input does not allow.