mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-10 16:20:39 +00:00
Deployed a85f200 to develop in en with MkDocs 1.6.1 and mike 2.1.3
This commit is contained in:
@@ -1690,6 +1690,7 @@ For the sample below, you then need to add the command line parameter <code>--hy
|
||||
<span class="n">config</span><span class="p">:</span> <span class="n">Config</span><span class="p">,</span>
|
||||
<span class="n">processed</span><span class="p">:</span> <span class="nb">dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">DataFrame</span><span class="p">],</span>
|
||||
<span class="n">backtest_stats</span><span class="p">:</span> <span class="nb">dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Any</span><span class="p">],</span>
|
||||
<span class="n">starting_balance</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span>
|
||||
<span class="o">**</span><span class="n">kwargs</span><span class="p">,</span>
|
||||
<span class="p">)</span> <span class="o">-></span> <span class="nb">float</span><span class="p">:</span>
|
||||
<span class="w"> </span><span class="sd">"""</span>
|
||||
@@ -1720,6 +1721,7 @@ For the sample below, you then need to add the command line parameter <code>--hy
|
||||
<li><code>config</code>: Config object used (Note: Not all strategy-related parameters will be updated here if they are part of a hyperopt space).</li>
|
||||
<li><code>processed</code>: Dict of Dataframes with the pair as keys containing the data used for backtesting.</li>
|
||||
<li><code>backtest_stats</code>: Backtesting statistics using the same format as the backtesting file "strategy" substructure. Available fields can be seen in <code>generate_strategy_stats()</code> in <code>optimize_reports.py</code>.</li>
|
||||
<li><code>starting_balance</code>: Starting balance used for backtesting.</li>
|
||||
</ul>
|
||||
<p>This function needs to return a floating point number (<code>float</code>). Smaller numbers will be interpreted as better results. The parameters and balancing for this is up to you.</p>
|
||||
<div class="admonition note">
|
||||
|
||||
@@ -561,6 +561,15 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#dry-run-wallet" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
Dry-run wallet
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -2115,6 +2124,15 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#dry-run-wallet" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
Dry-run wallet
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -2692,7 +2710,7 @@ In the below case, <code>max_open_trades</code> would be 3 after the merging - a
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>dry_run_wallet</code></td>
|
||||
<td>Define the starting amount in stake currency for the simulated wallet used by the bot running in Dry Run mode.<br><em>Defaults to <code>1000</code>.</em> <br> <strong>Datatype:</strong> Float</td>
|
||||
<td>Define the starting amount in stake currency for the simulated wallet used by the bot running in Dry Run mode. <a href="#dry-run-wallet">More information below</a><br><em>Defaults to <code>1000</code>.</em> <br> <strong>Datatype:</strong> Float or Dict</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>cancel_open_orders_on_exit</code></td>
|
||||
@@ -3163,6 +3181,21 @@ This exchange has also a limit on USD - where all orders must be > 10$ - whic
|
||||
<p class="admonition-title">Warning</p>
|
||||
<p>Since the limits on exchanges are usually stable and are not updated often, some pairs can show pretty high minimum limits, simply because the price increased a lot since the last limit adjustment by the exchange. Freqtrade adjusts the stake-amount to this value, unless it's > 30% more than the calculated/desired stake-amount - in which case the trade is rejected.</p>
|
||||
</div>
|
||||
<h4 id="dry-run-wallet">Dry-run wallet<a class="headerlink" href="#dry-run-wallet" title="Permanent link">¶</a></h4>
|
||||
<p>When running in dry-run mode, the bot will use a simulated wallet to execute trades. The starting balance of this wallet is defined by <code>dry_run_wallet</code> (defaults to 1000).
|
||||
For more complex scenarios, you can also assign a dictionary to <code>dry_run_wallet</code> to define the starting balance for each currency.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="nt">"dry_run_wallet"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
|
||||
<span class="w"> </span><span class="nt">"BTC"</span><span class="p">:</span><span class="w"> </span><span class="mf">0.01</span><span class="p">,</span>
|
||||
<span class="w"> </span><span class="nt">"ETH"</span><span class="p">:</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
|
||||
<span class="w"> </span><span class="nt">"USDT"</span><span class="p">:</span><span class="w"> </span><span class="mi">1000</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre></div>
|
||||
<p>Command line options (<code>--dry-run-wallet</code>) can be used to override the configuration value, but only for the float value, not for the dictionary. If you'd like to use the dictionary, please adjust the configuration file.</p>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>Balances not in stake-currency will not be used for trading, but are shown as part of the wallet balance.
|
||||
On Cross-margin exchanges, the wallet balance may be used to calculate the available collateral for trading.</p>
|
||||
</div>
|
||||
<h4 id="tradable-balance">Tradable balance<a class="headerlink" href="#tradable-balance" title="Permanent link">¶</a></h4>
|
||||
<p>By default, the bot assumes that the <code>complete amount - 1%</code> is at it's disposal, and when using <a href="#dynamic-stake-amount">dynamic stake amount</a>, it will split the complete balance into <code>max_open_trades</code> buckets per trade.
|
||||
Freqtrade will reserve 1% for eventual fees when entering a trade and will therefore not touch that by default.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user