Comments (7)
I'm working on this now. I will also create a StandardDeviation indicator to be used by the BollingerBand indicator.
from lean.
Wonderful! You'll be the first indicator contributor.
I couldn't agree more that making a StandardDeviation indicator is the way to go, and then using that in the BollingerBand indicator. Let me know if you have any questions about the design of the indicator system or anything else in Lean! Thanks!!
from lean.
Thanks. So far, everything looks very sensible. I'll let you know if there's anything questionable.
from lean.
@jaredbroad @mchandschuh
There is a problem with the test data.
spy_bollinger_bands.txt is missing the initial 50 rows, assuming that the moving average is a 50 period SMA. We need those 50 rows to initialize the SMA so that it matches the CSV. Are you able to easily generate a new CSV from somewhere?
Also, I added the en-US date format so that it can parse the CSV dates. That fixed two other failing tests.
from lean.
b78398c updates the bollinger band data to be correct. The Bollinger Band (20, 2) uses a 20 period moving average and +- 2 standard deviations (also computed from 20 periods) from the mean for the upper and lower bands respectively. This data is generated using the FreeStockCharts.com desktop silverlight application's 'Export Chart' feature.
Thanks for fixing those tests! They were passing in Travis but, I suppose we need to be more aware of globalization concerns.
from lean.
Thanks. Pull request submitted.
from lean.
Closed by commit #1d912765, +5 kudos to @mourednik
from lean.
Related Issues (20)
- Runtime error when using Python datetime with tzinfo as History request start and end times HOT 2
- Create the indicator manager
- CalculateOrderQuantity returns negative number HOT 2
- Adds Support to Mini/Micro Index Options
- Plot SeriesType.Scatter does not work HOT 1
- Runtime Error when adding option contract without explicitly adding equity to portfolio
- Library Request: mgarch
- Library Upgrade: pandas and polars
- Library Upgrade: mlfinlab
- `ImpliedVolatility` does not match IB's figure
- System.Exception: Attempted to divide by zero. in LogReturn indicator
- Models OZN: 10-Year US Treasury Future Options
- FrontMonth Option filter not selecting contracts
- GetFilePath should create the file path if it doesn't exist
- Custom data can't update OHLC security properties
- Review Kraken Symbol Properies
- Library Request: pytorch_forecasting
- "NQX" index option is not accessible through slice object.
- CandlestickPatternTests Are Not Being Run
- Library Request: jupyter-ai
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 lean.