mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
indicator: get supertrend signal
This commit is contained in:
parent
14e70007d9
commit
39615c8981
|
@ -107,6 +107,10 @@ func (inc *Supertrend) Update(highPrice, lowPrice, closePrice float64) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (inc *Supertrend) GetSignal() types.Direction {
|
||||||
|
return inc.tradeSignal
|
||||||
|
}
|
||||||
|
|
||||||
var _ types.Series = &Supertrend{}
|
var _ types.Series = &Supertrend{}
|
||||||
|
|
||||||
func (inc *Supertrend) calculateAndUpdate(kLines []types.KLine) {
|
func (inc *Supertrend) calculateAndUpdate(kLines []types.KLine) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user