bollinger bounds

This commit is contained in:
Will Charczuk 2016-07-15 09:02:50 -07:00
parent 21b4dfddc9
commit bc2b51077b
4 changed files with 189 additions and 27 deletions

View file

@ -5,3 +5,9 @@ type ValueProvider interface {
Len() int
GetValue(index int) (float64, float64)
}
// BoundedValueProvider allows series to return a range.
type BoundedValueProvider interface {
Len() int
GetBoundedValue(index int) (x, y1, y2 float64)
}