trade29.sc.constants.ChartDrawingType#
- class trade29.sc.constants.ChartDrawingType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
An enumeration of different types of chart drawings.
An overview of relevant fields that need to be set here when creating each drawing type is given. For more detail on some drawings refer to the Sierra Chart docs.
Attributes
LINE
A line between two anchors. Requires two anchors and only uses a primary color.
RAY
A ray starting at the first anchor and passing through the second anchor ad infinitum. Requires two anchors and uses a primary color.
HORIZONTAL_LINE
A horizontal line. Requires only a vertical value for the first anchor and uses a primary color.
VERTICAL_LINE
A vertical line. Requires only a horizontal value for the first anchor and uses a primary color.
ARROW
An arrow pointing down at the first anchor. Requires a first anchor and a primary color.
TEXT
Text displayed over the chart at the first anchor. Requires a first anchor, a primary color and for the text field to be set. The text_alignment field contains how the text is aligned with the anchor point.
RECTANGLEHIGLIGHT
A rectangle with a corner at the first anchor and a corner at the second. Requires two anchors, a primary and a secondary color. The primary color is for the outline and secondary color is for the fill.
ELLIPSE_HIGHLIGHT
RECTANGLE_EXT_HIGHLIGHT
EXTENDED_LINE
A line that passes through the first and second anchors and extends ad infinitum on both its ends. Requires two anchors and uses a primary color.
MARKER
Draws a dot at the first anchor. Requires the first anchor and uses a primary color.
HORIZONTAL RAY
A horizontal ray that starts at the first anchor and extends to the right. Requires a first anchor and uses a primary color.
DATE_MARKER
Draws a marker of the date at the bottom of the graph region. Requires a horizontal value for the first anchor.
HORIZONTAL_LINE_NON_EXTENDED
Draws a horizontal line through the first and second anchors.