Deployed 64e2763 to develop in en with MkDocs 1.6.1 and mike 2.1.3

This commit is contained in:
github-actions[bot]
2025-03-06 06:18:06 +00:00
parent 707a206430
commit a126c67d22
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -3131,6 +3131,9 @@ Regular stoploss rules still apply (cannot move down).</p>
<span class="sd"> Return None for no action.</span>
<span class="sd"> Optionally, return a tuple with a 2nd element with an order reason</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">trade</span><span class="o">.</span><span class="n">has_open_orders</span><span class="p">:</span>
<span class="c1"># Only act if no orders are open</span>
<span class="k">return</span>
<span class="k">if</span> <span class="n">current_profit</span> <span class="o">&gt;</span> <span class="mf">0.05</span> <span class="ow">and</span> <span class="n">trade</span><span class="o">.</span><span class="n">nr_of_successful_exits</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="c1"># Take half of the profit at +5%</span>