Pragy Agarwal

Results 22 comments of Pragy Agarwal

A parallel effort for the same feature by Robert: https://github.com/kernc/backtesting.py/pull/639

@kernc would you be willing to accept this PR (once complete)? If you have a better way in mind, please let me know :)

It looks like the current attempt is not backwards compatible. For example, the signature of `Strategy.position` has changed from `Position` to `dict[str, Position]`. 😞 Maybe we can include a flag...

There is also something wrong with `Broker.last_price` and other functions.

I've made a parallel attempt here https://github.com/kernc/backtesting.py/pull/641

Getting the same issue. It seems like this is because of the closing time not being at 00:00:00 AM. The datetimes I have look like `2000-01-03 18:30:00`, which is why...

Note: if you're not passing any extensions, it goes back to being slow. Even if you don't want to add any extensions, you should still declare an empty `const extensions...

Additionally, the demo posted with this repo https://uiwjs.github.io/react-codemirror/ suffers from the slowdown. Try holding backspace in the codemirror window in the demo - the code gets deleted in chunks instead...

> @jaller94 Upgrade `v4.11.5` I see that you've added a `useCallback` wrapper [in the new version](https://github.com/uiwjs/react-codemirror/commit/387a0c5b11991841cd40c880bc95cb389de87022#diff-a0d1a048e8b2207a2bae733e0d7502b2323811cd83101f2cb1d1d27270c01edcR61) but that doesn't fix it for me. I've upgraded to `"@uiw/react-codemirror": "^4.11.5"` but I...

> Also, make sure you only have react-monaco-editor and not(!) monaco-editor in your dependencies (not sure, but otherwise, it didn't work for me). without `monaco-editor`, it is unable to resolve...