Region
forge.signalsclassSince Forge API 1
Signaturepython
forge.signals.Region(start: int,end: int,/,*,label: str | None = None,color: object = None) -> NoneA stretch of bars to shade on the chart: fg.Region(start, end, label="news").
Parameters
| Name | Type | Default |
|---|---|---|
| start | int | |
| end | int | |
| label | str | None | None |
| color | object | None |
start and end are bar numbers, both included. Regions of one plot share one colour. A
label is
written above the first bar of the region.