mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Removes do_plot
and old comments
This commit is contained in:
parent
0fd2aca47e
commit
eaa85e8651
|
@ -228,31 +228,6 @@ def test_public_trades_binned_big_sample_list(public_trades_list):
|
|||
# bidask
|
||||
|
||||
|
||||
def do_plot(pair, data, trades, plot_config=None):
|
||||
import plotly.offline as pyo
|
||||
|
||||
from freqtrade.plot.plotting import generate_candlestick_graph
|
||||
|
||||
# Filter trades to one pair
|
||||
trades_red = trades # .loc[trades['pair'] == pair].copy()
|
||||
# Limit graph period to your BT timerange
|
||||
data_red = data # data['2021-04-01':'2021-04-20']
|
||||
|
||||
# plotconf = strategy.plot_config
|
||||
plotconf = plot_config
|
||||
|
||||
# Generate candlestick graph
|
||||
graph = generate_candlestick_graph(pair=pair,
|
||||
data=data_red,
|
||||
trades=trades_red,
|
||||
plot_config=plotconf
|
||||
)
|
||||
pyo.plot(graph, output_type="file", show_link=False,
|
||||
filename="tests/data/test_converter_public_trades.html")
|
||||
|
||||
|
||||
# need to be at last to see if some test changed the testdata
|
||||
# always need to use .copy() to avoid changing the testdata
|
||||
def test_public_trades_testdata_sanity(
|
||||
candles,
|
||||
public_trades_list,
|
||||
|
|
Loading…
Reference in New Issue
Block a user