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

linear

Standard linear line.

horizontal_vertical

Is the line horizontal-vertical.

markers

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.

See https://plotly.com/python/line-charts/?_ga=2.83222870.1162358725.1672302619-1029023258.1667666588#interpolation-with-line-plots

markers = 'markers'#

Individually specified points.

Typically used for event indicators e.g. cross over of two lines.