FlowscopeDocs

T215

no overload matches these arguments

Severity Error

The built-in has several forms, and none of them accepts this combination of argument types and count. A common example is calling p.plot with three values: line-style plots take one value, candle and bar plots take four.

Compare the call with the signatures listed in the message and adjust the arguments.

Failing example

Flowscope Script
script "Heikin-style candles"
data chart = subscribe(data.ohlcv)
pane p = pane(title: "Smoothed candles", height: 0.35)
plot bars = plot.candle(title: "Smoothed", on: p)
on chart.close {
  let o = ta.ema(chart.open, 3)
  let c = ta.ema(chart.close, 3)
  bars.plot(o, chart.high, c)
}

Fixed example

Flowscope Script
script "Heikin-style candles"
data chart = subscribe(data.ohlcv)
pane p = pane(title: "Smoothed candles", height: 0.35)
plot bars = plot.candle(title: "Smoothed", on: p)
on chart.close {
  let o = ta.ema(chart.open, 3)
  let c = ta.ema(chart.close, 3)
  bars.plot(o, chart.high, chart.low, c)
}