FlowscopeDocs

T203

argument supplied more than once

Severity Error

The same parameter receives a value twice, either through a positional value and a named argument, or through two named arguments with the same name.

Remove one of them.

Failing example

Flowscope Script
script "Slow average"
data chart = subscribe(data.ohlcv)
plot avg = plot.line(title: "SMA")
on chart.close {
  avg.plot(ta.sma(chart.close, 20, length: 50))
}

Fixed example

Flowscope Script
script "Slow average"
data chart = subscribe(data.ohlcv)
plot avg = plot.line(title: "SMA")
on chart.close {
  avg.plot(ta.sma(chart.close, 50))
}