PlotShape#
tradeexecutor.state.visualisation.PlotShape Python class in Trading Strategy framework.
- class PlotShape[source]#
Bases:
Enum
Describes the various shapes that a line can take in a plot. See discussion: https://github.com/tradingstrategy-ai/trade-executor/pull/156#discussion_r1058819823
- __init__()#
Attributes
Standard linear line.
Is the line horizontal-vertical.
Individually specified points.
- linear = 'linear'#
Standard linear line. Used in most cases.
- horizontal_vertical = 'hv'#
Is the line horizontal-vertical. Used for stop loss line.
- markers = 'markers'#
Individually specified points.
Typically used for event indicators e.g. cross over of two lines.