MMTMMT Docs
Diagnostics

T425

solid and gradient colors given to one fill call

T425

A fill call selects either a solid color or gradient colors. Remove the solid color when using top or bottom gradient colors, or remove both gradient colors for a solid fill.

Failing example

script "example"
data chart = subscribe(data.ohlcv)
plot high = plot.line(title: "High")
plot low = plot.line(title: "Low")
fill band = fill.between(high, low)
on chart.update { band.fill(color: color.blue, topColor: color.red) }

Corrected example

script "fixed"
data chart = subscribe(data.ohlcv)
plot high = plot.line(title: "High")
plot low = plot.line(title: "Low")
fill band = fill.between(high, low)
on chart.update { band.fill(topColor: color.red, bottomColor: color.blue) }

On this page