Minimal Fill Examples
Category: trend, volatility
A template and educational script demonstrating Pine Script v6 fill() functionality, including plot-to-hline, SMA crossovers, conditional price-to-MA fills, and gradient fills.
Formula
SMA_{fast} = \text{sma}(close, 10); SMA_{slow} = \text{sma}(close, 20); \text{Conditional Color} = close > SMA_{slow} ? green : 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.