Skip to content

plot ¤

OptimizePlotter ¤

OptimizePlotter()

Bases: Plotter

Class help to plot lettrade

Source code in lettrade/exchange/backtest/plot.py
11
12
def __init__(self) -> None:
    super().__init__()

contour ¤

contour(x: str, y: str, z: str = 'equity', **kwargs)
Source code in lettrade/exchange/backtest/plot.py
26
27
def contour(self, x: str, y: str, z: str = "equity", **kwargs):
    """"""

heatmap ¤

heatmap(x: str, y: str, z: str = 'equity', **kwargs)
Source code in lettrade/exchange/backtest/plot.py
23
24
def heatmap(self, x: str, y: str, z: str = "equity", **kwargs):
    """"""

load abstractmethod ¤

load()

Load plot config from Strategy.plot() and setup candlestick/equity

Source code in lettrade/plot/plot.py
 9
10
11
@abstractmethod
def load(self):
    """Load plot config from `Strategy.plot()` and setup candlestick/equity"""

on_done ¤

on_done()
Source code in lettrade/exchange/backtest/plot.py
20
21
def on_done(self):
    """"""

on_result ¤

on_result(result)
Source code in lettrade/exchange/backtest/plot.py
17
18
def on_result(self, result):
    """"""

plot abstractmethod ¤

plot(**kwargs)

Plot equity, orders, and positions then show

Source code in lettrade/plot/plot.py
13
14
15
@abstractmethod
def plot(self, **kwargs):
    """Plot `equity`, `orders`, and `positions` then show"""

stop abstractmethod ¤

stop()

stop plotter

Source code in lettrade/plot/plot.py
17
18
19
@abstractmethod
def stop(self):
    """stop plotter"""