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/

    Exiting trades due to margin closeout

    General Discussion
    1
    1
    12
    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.
    • T
      t3chap last edited by

      Am I correct in assuming that backtrader doesn't exit trades when a margin call would have happened? I have a system I'm testing in forex which can be highly leveraged but I want to use a lesser amount. I've set the leverage to 4 (from 50 that is available at many forex outlets) but I'm not able to see that any trades have been exited for a margin exceedance if the market goes against the trade and the account value falls below the required amount for leverage.

      It appears that new trades are rejected due to margin if there is insufficient money in the trading account, but I don't see where existing trades are exited due to margin.

      I haven't seen this explicitly stated in the documentation yet but I might have missed it.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors