mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Rename variables
This commit is contained in:
parent
f1fbf537c4
commit
c8f934cafb
|
@ -134,18 +134,18 @@ func (inc *Supertrend) GetSignal() types.Direction {
|
|||
return inc.tradeSignal
|
||||
}
|
||||
|
||||
// GetDirection returns current trend
|
||||
func (inc *Supertrend) GetDirection() types.Direction {
|
||||
// GetDirection return the current trend
|
||||
func (inc *Supertrend) Direction() types.Direction {
|
||||
return inc.trend
|
||||
}
|
||||
|
||||
// GetCurrentSupertrendSupport returns last supertrend support
|
||||
func (inc *Supertrend) GetCurrentSupertrendSupport() float64 {
|
||||
// LastSupertrendSupport return the current supertrend support
|
||||
func (inc *Supertrend) LastSupertrendSupport() float64 {
|
||||
return inc.supportLine.Last()
|
||||
}
|
||||
|
||||
// GetCurrentSupertrendResistance returns last supertrend resistance
|
||||
func (inc *Supertrend) GetCurrentSupertrendResistance() float64 {
|
||||
// LastSupertrendResistance return the current supertrend resistance
|
||||
func (inc *Supertrend) LastSupertrendResistance() float64 {
|
||||
return inc.resistanceLine.Last()
|
||||
}
|
||||
|
||||
|
|
|
@ -178,18 +178,18 @@ func (inc *PivotSupertrend) GetSignal() types.Direction {
|
|||
return inc.tradeSignal
|
||||
}
|
||||
|
||||
// GetDirection returns current trend
|
||||
func (inc *PivotSupertrend) GetDirection() types.Direction {
|
||||
// GetDirection return the current trend
|
||||
func (inc *PivotSupertrend) Direction() types.Direction {
|
||||
return inc.trend
|
||||
}
|
||||
|
||||
// GetCurrentSupertrendSupport returns last supertrend support value
|
||||
func (inc *PivotSupertrend) GetCurrentSupertrendSupport() float64 {
|
||||
// LastSupertrendSupport return the current supertrend support value
|
||||
func (inc *PivotSupertrend) LastSupertrendSupport() float64 {
|
||||
return inc.supportLine.Last()
|
||||
}
|
||||
|
||||
// GetCurrentSupertrendResistance returns last supertrend resistance value
|
||||
func (inc *PivotSupertrend) GetCurrentSupertrendResistance() float64 {
|
||||
// LastSupertrendResistance return the current supertrend resistance value
|
||||
func (inc *PivotSupertrend) LastSupertrendResistance() float64 {
|
||||
return inc.resistanceLine.Last()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user