Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Trailing Stop Loss Type

    General Code/Help
    2
    2
    602
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      agserran last edited by

      We want a trailing stop loss that has an initial stop loss distance eg. 1% from the fill price. But we only want the stop loss to begin trailing after the market has risen by .5%. Therefore, the stop loss has an initial stop loss distance AND a trailing stop loss distance. So there are two inputs. We are using Interactive Brokers through the Backtrader API, is there such a stop loss feature available? Also is there an option for a regular Stop Loss that will adjust to the fill price without having to calculate it before hand on the price we think we will get filled on? We are using Limit Orders and there have been cases where we have gotten filled at our Stop Loss, closing us out immediately.

      Thank you

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        You are probably looking for Advanced Order Types

        • https://www.interactivebrokers.com/en/software/tws/usersguidebook/ordertypes/advanced_order_types.htm

        And something like

        • https://www.interactivebrokers.com/en/software/tws/usersguidebook/ordertypes/trailing_limit_if_touched.htm#XREF_76968_Trailing_Limit_if
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
        $(document).ready(function () { app.coldLoad(); }); }