Rename variables

This commit is contained in:
Fredrik 2023-01-15 10:25:22 +01:00
parent f1fbf537c4
commit c8f934cafb
2 changed files with 12 additions and 12 deletions

View File

@ -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()
}

View File

@ -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()
}