@plot.fill
decorator and a plot.Fill
class.
In the first place the @plot.fill
decorator declares which two plots should be used for filling. Optionally
it may have a color argument, which should be used if a single-colored fill is desired.
@plot.fill
decorator and plot.Fill
object always must be used together. Even in simple cases of a
single-colored fills where plot.Fill
object is constructed with all default values (i.e. with no arguments plot.Fill()
).
Main
function code and passed as
argument to a plot.Fill
object returned by the Main
function.
plot.Fill()
has an optional parameter offset: int
. It may be used to shift the coloring to the left (if offset
is
negative) or to the right (if offset
is positive):
offset
has effect only to multi-colored fills and has none to single-colored ones.
@level()
decorator creates a level (horizontal line).
value
— Value of the level on a vertical scale of an indicator.title
— Human readable title which is visible in the indicator’s Settings panel.line_color
— Color of the line.line_style
— Style of the line. It is represented as enum value of type line_style
.line_width
— Width of the line.@band()
decorator creates a band (two horizontal lines usually with a semi-transparent fill in between them).
value1
— Value of the first horizontal line of a band on a vertical scale of an indicator.value2
— Value of the second horizontal line of a band on a vertical scale of an indicator.title
— Human readable title which is visible in the indicator’s Settings panel.fill_color
— Color of the background.line_color
— Color of the line.line_style
— Style of the line. It is represented as enum value of type line_style
.line_width
— Width of the line.