Minimal Fill Examples

Category: trend

Demonstrates various use cases for the Pine Script fill() function, including SMA ribbons, conditional price-to-MA highlighting, and gradient fills between levels.

Formula

SMA_{fast} = \text{sma}(close, 10) \\ SMA_{slow} = \text{sma}(close, 20) \\ FillColor = \text{close} > SMA_{slow} ? \text{Green} : \text{Red}

Inputs

See signal primitives, usage in published strategies and more on WOBR StrategyVerse.


Open in the WOBR AI app → · WOBR.AI home