Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. seedds
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    seedds

    @seedds

    0
    Reputation
    117
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    seedds Unfollow Follow

    Latest posts made by seedds

    • Is it possible to buy and sell for the same amount of value at the same bar with no cash in account?

      Say I have 0 cash in my account, and I would like to buy A stock for 100 and sell B stock for 100 at the next bar. Only the sell order will be executed, and the buy order status will be 'Margin' and I will end up with 100 cash sitting in my account at the end of the next bar.

      I have to create additional bars to get both the sell and buy orders executed.

      Is there any other way to solve this?

      Thank you.

      posted in General Discussion
      S
      seedds
    • RE: Having "Margin" problem when reversing the position using order_target_percent

      Same problem here.

      Say I have 0 cash in my account, and I would like to buy A stock for 100 and sell B stock for 100 at the next bar. Only the sell order will be executed, and the buy order status will be 'Margin' and I will end up with 100 cash sitting in my account at the end of the next bar.

      I have to create additional bars to get both the sell and buy orders executed.

      Is there any other way to solve this?

      Thank you.

      posted in General Discussion
      S
      seedds