Replace plotfill with fill()
Searching for plotfill in Pine Script v5 usually leads to the fill() API. The example stores two moving-average plot IDs and passes them to fill(). Passing the moving-average values themselves would be a type error. Each code block on this page is a separate complete indicator; paste one at a time into Pine Editor.
//@version=5
indicator("MA Spread Fill", overlay=true)
fast = ta.sma(close, 9)
slow = ta.sma(close, 21)
fastPlot = plot(fast, "Fast SMA", color=color.teal)
slowPlot = plot(slow, "Slow SMA", color=color.orange)
fill(fastPlot, slowPlot, color=color.new(color.blue, 85), title="MA spread")