Deployed 676cdab to develop in en with MkDocs 1.6.1 and mike 2.1.3
This commit is contained in:
@@ -3086,8 +3086,10 @@ Trades with long duration and 10s or even 100ds of position adjustments are ther
|
||||
<p>The total profit for this trade was 950$ on a 3350$ investment (<code>100@8$ + 100@9$ + 150@11$</code>). As such - the final relative profit is 28.35% (<code>950 / 3350</code>).</p>
|
||||
</details>
|
||||
<h2 id="adjust-entry-price">Adjust Entry Price<a class="headerlink" href="#adjust-entry-price" title="Permanent link">¶</a></h2>
|
||||
<p>The <code>adjust_entry_price()</code> callback may be used by strategy developer to refresh/replace limit orders upon arrival of new candles.
|
||||
Be aware that <code>custom_entry_price()</code> is still the one dictating initial entry limit order price target at the time of entry trigger.</p>
|
||||
<p>The <code>adjust_entry_price()</code> callback may be used by strategy developer to refresh/replace limit orders upon arrival of new candles.<br />
|
||||
This callback is called once every iteration unless the order has been (re)placed within the current candle - limiting the maximum (re)placement of each order to once per candle.
|
||||
This also means that the first call will be at the start of the next candle after the initial order was placed.</p>
|
||||
<p>Be aware that <code>custom_entry_price()</code> is still the one dictating initial entry limit order price target at the time of entry trigger.</p>
|
||||
<p>Orders can be cancelled out of this callback by returning <code>None</code>.</p>
|
||||
<p>Returning <code>current_order_rate</code> will keep the order on the exchange "as is".
|
||||
Returning any other price will cancel the existing order, and replace it with a new order.</p>
|
||||
|
||||
Reference in New Issue
Block a user