mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
supertrend: add comment to make the condition clearer
This commit is contained in:
parent
f6770df50f
commit
55f36b2f3e
|
@ -345,6 +345,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
}
|
||||
}
|
||||
|
||||
// The default value of side is an empty string. Unless side is set by the checks above, the result of the following condition is false
|
||||
if side == types.SideTypeSell || side == types.SideTypeBuy {
|
||||
log.Infof("open %s position for signal %v", s.Symbol, side)
|
||||
s.Notify("open %s position for signal %v", s.Symbol, side)
|
||||
|
|
Loading…
Reference in New Issue
Block a user