Typing¶
These classes serve as placeholders for type requirements.
- class NUM(Literal[float, int])¶
- class FLOAT(Literal['left', 'right', 'top', 'bottom'])¶
- class TIME(Union[datetime, pd.Timestamp, str])¶
- class COLOR(str)¶
Throughout the library, colors should be given as either rgb (
rgb(100, 100, 100)), rgba(rgba(100, 100, 100, 0.7)), hex(#32a852) or a html literal(blue,redetc).
- class LINE_STYLE(Literal['solid', 'dotted', 'dashed', 'large_dashed', 'sparse_dotted'])¶
- class MARKER_POSITION(Literal['above', 'below', 'inside'])¶
- class MARKER_SHAPE(Literal['arrow_up', 'arrow_down', 'circle', 'square'])¶
- class CROSSHAIR_MODE(Literal['normal', 'magnet'])¶
- class PRICE_SCALE_MODE(Literal['normal', 'logarithmic', 'percentage', 'index100'])¶
- class ALIGN(Literal['left', 'right'])¶