Comments (3)
CAGR = (total_ret) ** (1 / period_years) - 1
period_years can be equals to 0 which leads to a division by Zero.
from lumibot.
maybe we should just do a try/catch around this or put it in an if statement that checks period_years?
from lumibot.
release 0.0.7 solves the bug
from lumibot.
Related Issues (20)
- Bug: strategy returns wrong position quantity when requested after order is filled (`self.get_position(asset)`)
- Bug: `get_orders()` not working
- Github Codespace incompatibility HOT 2
- Naive time - no tzinfo set HOT 13
- Adjusted option prices become stale too when stocks split.
- Polygon Backtesting does not include dividends HOT 8
- Python version 3.9 does not support match statements HOT 4
- Error emitted on keyboard interrupt HOT 1
- metadata-generation-failed HOT 3
- Issue duckdb conversion HOT 10
- Tradier order.average_fill_price and order.get_fill_price() are both 0.0 HOT 2
- Backtesting broker should check cash before processing pending orders HOT 7
- Backtesting could get data from the future
- Websocket streaming for tradier HOT 8
- Order avg_fill_price is 0.0 when backtesting
- Interactive Brokers crypto support
- Add chart support for candlestick HOT 2
- Speed up backtesting HOT 1
- OKX crypto exchange support
- Constructor for custom datetime doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumibot.