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
- Top Value (default: 100)
- Bottom Value (default: 0)
- Top Color (default: color.red)
- Bottom Color (default: color.blue)
- Hline 1 Value (default: 20)
- Hline 2 Value (default: 10)
See signal primitives and every published strategy that uses Minimal Fill Examples on WOBR StrategyVerse.