This commit is contained in:
David Brazda
2024-10-10 10:23:05 +02:00
parent 8d5036c5aa
commit 6cfee7aa4c
6 changed files with 33 additions and 17 deletions

View File

@ -1,7 +1,19 @@
# ttools
A Python library for tools, utilities, and helpers for my trading research workflow.
# Modules
Modules:
# utils
## vbtutils
Contains helpers for vbtpro
`AnchoredIndicator` - allows runing any vbt indicator in anchored mode (reset by Day, Hour etc.)
Example usage:
```python
from ttools import AnchoredIndicator
mom_standard = vbt.indicator("talib:MOM").run(t1data.data["BAC"].close)
mom_anchored_d = AnchoredIndicator("talib:MOM", anchor='D').run(t1data.data["BAC"].close)
```
- `utils.vbtutils` - contains helpers for vbtpro
- `AnchoredIndicator` - allows runing any vbt indicator in anchored mode (reset by Day, Hour etc.)