- refactoring LatestBar(symbol string) (*Bar, error)
@@ -113,7 +113,7 @@ func (s alpacaQQQ) Handle(market sentio.Market, proba float64) ([]sentio.Strateg
if sentio.SHORT == side && proba < .9997 {
var (
sma []float64
- lb sentio.Bar
+ lb *sentio.Bar
)
// prevent extra orders if our position is cheaper