Test generate_profit_plot
This commit is contained in:
@@ -10,7 +10,7 @@ from typing import Any, Dict, List
|
||||
|
||||
from freqtrade.arguments import ARGS_PLOT_PROFIT, Arguments
|
||||
from freqtrade.optimize import setup_configuration
|
||||
from freqtrade.plot.plotting import FTPlots, generate_profit_graph
|
||||
from freqtrade.plot.plotting import FTPlots, generate_profit_graph, store_plot_file
|
||||
from freqtrade.state import RunMode
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -29,7 +29,8 @@ def plot_profit(config: Dict[str, Any]) -> None:
|
||||
|
||||
# Create an average close price of all the pairs that were involved.
|
||||
# this could be useful to gauge the overall market trend
|
||||
generate_profit_graph(plot.pairs, plot.tickers, trades)
|
||||
fig = generate_profit_graph(plot.pairs, plot.tickers, trades)
|
||||
store_plot_file(fig, filename='freqtrade-profit-plot.html', auto_open=True)
|
||||
|
||||
|
||||
def plot_parse_args(args: List[str]) -> Dict[str, Any]:
|
||||
|
Reference in New Issue
Block a user