mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +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{}
|
||||
|
||||
func (inc *Supertrend) calculateAndUpdate(kLines []types.KLine) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user