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?
-
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? -
@pshiw There's two parts to your question.
-
Yes you can build an execution strategy using Replay. This allows you to have two different time frames for your data.
-
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.
-