T414
indicator length out of range
Severity Error
A constant indicator length lies outside the range the function accepts. Most windows must be at least 1 (some, like ta.stdev or ta.correlation, need 2) and at most the maximum history depth.
Choose a value in the range named in the message. For inputs, set min: and max: so the user cannot pick an invalid length.
Failing example
script "Zero EMA"
data chart = subscribe(data.ohlcv)
plot ema = plot.line(title: "EMA")
on chart.close {
ema.plot(ta.ema(chart.close, 0))
}Fixed example
script "Zero EMA"
data chart = subscribe(data.ohlcv)
plot ema = plot.line(title: "EMA")
on chart.close {
ema.plot(ta.ema(chart.close, 9))
}