Level

forge.indicatorclassSince Forge API 1
Signaturepython
forge.indicator.Level(value: float,label: str = '',*,color: Color | str | None = None,width: float = 1.0,dash: str = 'dash') -> None

A horizontal line in the indicator's pane: fg.Level(70, "Overbought").

Parameters

NameTypeDefault
valuefloat
labelstr''
colorColor | str | NoneNone
widthfloat1.0
dashstr'dash'

color defaults to theme.neutral, width to 1 and dash to "dash". A level never changes after it is made.

Used in