kernc
kernc
Nevermind, I misunderstood. I guess the reason SL isn't hit on the same bar is that we iterate over a copy of orders state: https://github.com/kernc/backtesting.py/blob/d146b435824377e27472d9aac8173e8512480198/backtesting/backtesting.py#L774 so once we turn an...
But imagine an order on that day placed with `self.buy(stop=758, sl=720)`, i.e. the order is only entered once the stop price is hit (which is above open price ($755)). This...
> In the previous versions it worked perfectly. Glad you think so. :blush: The following commit should restore the previous behavior for plain market orders. Thanks.
This is the relevant code part: https://github.com/kernc/backtesting.py/blob/0ce24d80b1bcb8120d95d31dc3bb351b1052a27d/backtesting/backtesting.py#L935-L966 I wonder why we exclude limit orders here ... 🤔🤨 https://github.com/kernc/backtesting.py/blob/0ce24d80b1bcb8120d95d31dc3bb351b1052a27d/backtesting/backtesting.py#L948-L949 Maybe that should be an `if True: ...`?
> the spec actually doesn't really define the behavior well What the spec says is: > Form parts with identical field names MUST NOT be coalesced. https://tools.ietf.org/html/rfc7578#section-5.2 Multiple repeated sections...
Yes, you can run the example with `G_MESSAGES_DEBUG=all xsuspender` to obtain a more verbose output. We use this to subscribe to window change events: https://github.com/kernc/xsuspender/blob/a26b7e79f2a57d70b3d96eaf9212f3430e03118c/src/events.c#L16-L19 https://github.com/kernc/xsuspender/blob/a26b7e79f2a57d70b3d96eaf9212f3430e03118c/src/events.c#L80-L90 https://github.com/kernc/xsuspender/blob/a26b7e79f2a57d70b3d96eaf9212f3430e03118c/src/events.c#L59-L76 Anything strike you...
Make sure the platform is X11 and not Wayland. If it works with another WM, such as flwm or Xfce, you might ask @awesomeWM guys.
I would like to nominate myself as a new maintainer. :raised_hand_with_fingers_splayed: It's a real shame if not wholly unacceptable to see a such a well-rounded drop-in library stall unmaintained, accumulating...
I got an interview! :raised_hands: Sure thing. It shouldn't be too hard to sync — we're all keeping busy, but at least we're mostly locked in. :laughing: Let me send...
> And if `pdoc` is actually being executed in a venv (that it's installed in), then there's no need to screw with `sys.path`, it'll already point into the venv's `site-packages`...