Backtrader Community

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

    tsz fung Chan

    @tsz fung Chan

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    tsz fung Chan Unfollow Follow

    Latest posts made by tsz fung Chan

    • Backtrader Close the position after 5 days

      The trading logic is the close is higher than EMA200 then buy
      close is lower than EMA200 then close the position

      How can I code:
      if after 5 days no close signal (price is lower than EMA200) then close the position

      posted in General Code/Help
      tsz fung Chan
      tsz fung Chan