bot
¤
BotPlotter
¤
BotPlotter(bot: LetTradeBot)
Bases: Plotter
Class help to plot bot result
Source code in lettrade/plot/bot.py
34 35 36 37 38 39 40 41 |
|
jump
¤
jump(
since: int | str | Timestamp | None = None,
order_id: str | None = None,
position_id: str | None = None,
range: int = 300,
name: str | None = None,
)
Jump to place on datefeed
Parameters:
-
since
(int | str | Timestamp | None
, default:None
) –Jump to index/datetime. Defaults to None.
-
order_id
(str | None
, default:None
) –Jump to order id. Defaults to None.
-
position_id
(str | None
, default:None
) –Jump to position id. Defaults to None.
-
range
(int
, default:300
) –number of candle plot. Defaults to 300.
-
name
(str | None
, default:None
) –description. Defaults to None.
Raises:
-
RuntimeError
–description
Source code in lettrade/plot/bot.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
jump_reset
¤
jump_reset() -> bool
Reset jump datafeeds back to bot datafeeds
Source code in lettrade/plot/bot.py
162 163 164 165 166 167 168 |
|
load
abstractmethod
¤
load()
Load plot config from Strategy.plot()
and setup candlestick/equity
Source code in lettrade/plot/plot.py
9 10 11 |
|
plot
abstractmethod
¤
plot(**kwargs)
Plot equity
, orders
, and positions
then show
Source code in lettrade/plot/plot.py
13 14 15 |
|
stop
abstractmethod
¤
stop()
stop plotter
Source code in lettrade/plot/plot.py
17 18 19 |
|