added profit plot

This commit is contained in:
Jonathan Raviotta 2019-09-14 22:14:34 -04:00
parent 85a0d2f6cb
commit b35bb7e6b2

View File

@ -275,6 +275,40 @@
"Once you are happy with your strategy signals, run a backtest then plot again." "Once you are happy with your strategy signals, run a backtest then plot again."
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Run backtest\n",
"!freqtrade {conf} backtesting --timerange={timerange} --ticker-interval {ticker_interval} --export=trades --export-filename={config['exportfilename']}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from freqtrade.plot.plotting import plot_profit\n",
"\n",
"fig = plot_profit({'strategy': config['strategy'],\n",
" 'strategy_path': Path(config['strategy_path']),\n",
" 'timerange': timerange,\n",
" 'ticker_interval': ticker_interval,\n",
" 'strategy_path': Path(config['strategy_path']),\n",
" 'datadir': Path(config['datadir']),\n",
" 'user_data_dir': Path(config['user_data_dir']),\n",
" 'exchange': config['exchange'],\n",
" 'trade_source': config['trade_source'],\n",
" 'exportfilename': config['exportfilename'],\n",
" 'indicators1': overlay_indicators,\n",
" 'indicators2': bottom_indicators\n",
" })\n",
"fig.show()"
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},