Comments (3)
I think the more natural solution is to (have an options to) use logarithmic/exponential fit rather than linear fit. Fit to y=np.log(price) and then predict y. Return to the user price=np.exp(y). You could still get a price of 0.00 by rounding, say, 0.002 down to 0.00. It is a more realistic model for compound losses or compound gains. 75% loss is twice as bad as 50% loss. 100% loss is infinitely worse. And 100% gain offsets a 50% loss.
I'd also like to make predictions on volatility measures rather than just price. I would guess that sometimes it is easier to figure out just that a price may move more than usual rather than which direction. Volatility measures might also be bounded by zero.
I see we also get negative numbers for the lower bollinger bands curve for GME recently. Doing Bollinger Bands within a logarithmic/exponential pre-/post-processing framework could fix that such that you get useful levels not just zero. Having that as some kind of optional flag would allow users to use it only when they want it, and maybe use it modularly across different TA and prediction options with very little code modification.
from openbbterminal.
Hey guys,
Thank you @Bainsbe for pointing this out!
And thank you @jamesphillipturpin for this solution. I'll label this ticker as a new feature and will work on that flag as well soon.
Regardless, I think that the right thing to do if the prediction of the stock price is negative, is to output "Invalid prediction" or similar. As realistically, a stock wouldn't go to 0 either.
from openbbterminal.
Assuming this has been addressed in PR #436
from openbbterminal.
Related Issues (20)
- [Bug]: generating extra frames during oauth login using gmail HOT 2
- [Bug] - Report .html couldn't be created. HOT 1
- [Bug] Docs Spelling Mistakes
- [IMPROVE] HOT 1
- [Bug] - IntrinioInsiderTradingData: underlying_shares - Input should be a valid integer, got a number with a fractional part
- [Bug] [Rest API]: Literal error when a comma-separated list of countries is used.
- `news` command doesn't work as documented
- Want to access a running openBBTerminal container running on my local server through a web browser HOT 3
- [Bug] 3D Volatility Surface -- axes are off HOT 1
- [Bug] Receiving TypeError after login HOT 2
- [IMPROVE] News feature needs to improve make sure the news is about the stocks and not random news. HOT 1
- CAPM code returns error HOT 5
- [Bug] Blank charts HOT 8
- [Bug] Cannot search for a term with spaces in it in the funds menu of OpenBB Terminal
- [Bug] obb.fixedincome.government.treasury_rates(): Federal Reserve website error - We're sorry, but an unhandled error has occurred. HOT 1
- [Bug] No historical price data with yfinance HOT 9
- [FR]: Historical EPS data from AlphaVantage
- [FR] Source Support
- Copper to Gold Ratio Example
- [FR] - add provider for yfinance-cache 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 openbbterminal.