Band
forge.indicatorclassSince Forge API 1
Signaturepython
forge.indicator.Band(a: _OutputDecl | Level | float,b: _OutputDecl | Level | float,*,style: str = 'area',color: Color | str | None = None,color_up: Color | str | None = None,color_down: Color | str | None = None,show: Iterable[str] | None = None) -> NoneShade (or draw as bars) the space between two sides of one indicator.
Parameters
| Name | Type | Default |
|---|---|---|
| a | _OutputDecl | Level | float | |
| b | _OutputDecl | Level | float | |
| style | str | 'area' |
| color | Color | str | None | None |
| color_up | Color | str | None | None |
| color_down | Color | str | None | None |
| show | Iterable[str] | None | None |
A side is a value output of this class, a Level in its levels or a plain number.
With color_up and color_down the band takes the up colour where a is above b
and the down colour where it is below; a band has no base, width or dash. It is drawing
only: a strategy reads the outputs, never a band.