trade29.sc.constants.ChartDrawingAlignment#

class trade29.sc.constants.ChartDrawingAlignment#

This class contains useful constants for specifying chart drawing text alignments. They can be supplied to relevant fields on their own, or combined with the bitwise OR operator (|)

Examples

>>> from trade29.sc import constants
# Align bottom of text with anchor
>>> bridge.some_drawing_method(key="xx", text_aligment=constants.ChartDrawingAlignment.BOTTOM)
# Align right of text with anchor
>>> bridge.some_drawing_method(key="xx", text_aligment=constants.ChartDrawingAlignment.RIGHT)
# Align bottom right of text with anchor
>>> bridge.some_drawing_method(
        key="xx", 
        text_aligment=constants.ChartDrawingAlignment.BOTTOM | constants.ChartDrawingAlignment.RIGHT)

Attributes

TOP

LEFT

HCENTER

RIGHT

VCENTER

BOTTOM