mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
rename SMA2 to just SMA
This commit is contained in:
parent
1da94f55e9
commit
66dd5507d1
|
@ -26,7 +26,7 @@ type BOLLStream struct {
|
|||
// -> calculate stdDev -> calculate bandWidth -> get latest SMA -> upBand, downBand
|
||||
func BOLL(source types.Float64Source, window int, k float64) *BOLLStream {
|
||||
// bind these indicators before our main calculator
|
||||
sma := SMA2(source, window)
|
||||
sma := SMA(source, window)
|
||||
stdDev := StdDev(source, window)
|
||||
|
||||
s := &BOLLStream{
|
||||
|
|
|
@ -12,7 +12,7 @@ type SMAStream struct {
|
|||
rawValues *types.Queue
|
||||
}
|
||||
|
||||
func SMA2(source types.Float64Source, window int) *SMAStream {
|
||||
func SMA(source types.Float64Source, window int) *SMAStream {
|
||||
s := &SMAStream{
|
||||
Float64Series: types.NewFloat64Series(),
|
||||
window: window,
|
||||
|
|
Loading…
Reference in New Issue
Block a user