Rename function in samples

This commit is contained in:
Matthias 2019-10-30 19:30:35 +01:00
parent 6928c685a8
commit bba8e61409
2 changed files with 6 additions and 6 deletions

View File

@ -110,14 +110,14 @@ trades.groupby("pair")["sell_reason"].value_counts()
## Analyze the loaded trades for trade parallelism ## Analyze the loaded trades for trade parallelism
This can be useful to find the best `max_open_trades` parameter, when used with backtesting in conjunction with `--disable-max-market-positions`. This can be useful to find the best `max_open_trades` parameter, when used with backtesting in conjunction with `--disable-max-market-positions`.
`parallel_trade_analysis()` returns a timeseries dataframe with an "open_trades" column, specifying the number of open trades for each candle. `analyze_trade_parallelism()` returns a timeseries dataframe with an "open_trades" column, specifying the number of open trades for each candle.
```python ```python
from freqtrade.data.btanalysis import parallel_trade_analysis from freqtrade.data.btanalysis import analyze_trade_parallelism
# Analyze the above # Analyze the above
parallel_trades = parallel_trade_analysis(trades, '5m') parallel_trades = analyze_trade_parallelism(trades, '5m')
parallel_trades.plot() parallel_trades.plot()

View File

@ -174,7 +174,7 @@
"## Analyze the loaded trades for trade parallelism\n", "## Analyze the loaded trades for trade parallelism\n",
"This can be useful to find the best `max_open_trades` parameter, when used with backtesting in conjunction with `--disable-max-market-positions`.\n", "This can be useful to find the best `max_open_trades` parameter, when used with backtesting in conjunction with `--disable-max-market-positions`.\n",
"\n", "\n",
"`parallel_trade_analysis()` returns a timeseries dataframe with an \"open_trades\" column, specifying the number of open trades for each candle." "`analyze_trade_parallelism()` returns a timeseries dataframe with an \"open_trades\" column, specifying the number of open trades for each candle."
] ]
}, },
{ {
@ -183,10 +183,10 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from freqtrade.data.btanalysis import parallel_trade_analysis\n", "from freqtrade.data.btanalysis import analyze_trade_parallelism\n",
"\n", "\n",
"# Analyze the above\n", "# Analyze the above\n",
"parallel_trades = parallel_trade_analysis(trades, '5m')\n", "parallel_trades = analyze_trade_parallelism(trades, '5m')\n",
"\n", "\n",
"\n", "\n",
"parallel_trades.plot()" "parallel_trades.plot()"