Backtrader Community

    • 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/

    Can we create a time based execution strategy with stop loss on intraday basis?

    Indicators/Strategies/Analyzers
    2
    2
    221
    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.
    • pshiw
      pshiw last edited by

      Need to create and backtest time based execution strategy. for example after opening of market say at 9:15 AM, want to enter in ATM/ITM/OTM options (CE/PE) off index at 9:30. The stop loss might be respective index upper/lower level. Or should get exit/closed before 15-20 min of market closing time.
      Is it possible to implement it in backtrace?

      run-out 1 Reply Last reply Reply Quote 0
      • run-out
        run-out @pshiw last edited by

        @pshiw There's two parts to your question.

        1. Yes you can build an execution strategy using Replay. This allows you to have two different time frames for your data.

        2. If you have implemented options in backtrader, great. But my understanding is that backtrader does not work well or at all with options. You might want to google that before you commit to using backtrader.

        RunBacktest.com

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