For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Clarification about bracket orders



  • Looking at the bracket order implementation in backtrader, I think something is missing.
    When I do bracket order with broker (long for example), I have the option to specify buy limit. For example, if close price is $50, I want to buy at $51 but not to exceed $52 and then stop loss is $45 and Take Profit is $60.
    I see that stop loss is implemented as sell stop and take a profit is implemented as sell limit which is exactly what broker offer. However, I don't see the limit for buy entry. The reason behind this limit is, I want to catch momentum when equity is going up but if it gaps or goes to high, it is not worth buying it anymore.
    Can somebody help me explain how to do this in backtrader if possible?
    Thanks



  • Is anybody using buy limit feature?


  • administrators

    @FaiqS said in Clarification about bracket orders:

    I think something is missing.

    Yes me too. You haven't read the documentation.

    @FaiqS said in Clarification about bracket orders:

    However, I don't see the limit for buy entry

    It's the default behavior, which you can change if you think your broker does it otherwise.

    Docs - Bracket Orders


Log in to reply
 

});