Browse Source

QQQ10f

- fix last order time
Alexey Kim 1 month ago
parent
commit
e9515cc1e2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      strategy/alpaca/qqq10f/strategy.go

+ 2 - 2
strategy/alpaca/qqq10f/strategy.go

@@ -68,7 +68,7 @@ func (s alpacaQQQ) Handle(market sentio.Market, proba float64) ([]sentio.Strateg
 		}
 
 		// Close positions before market closed
-		if ok && t.Hour() == 19 && t.Minute() > 55 {
+		if ok && t.Hour() == 19 && t.Minute() > 45 {
 			orders = append(orders, sentio.StrategyOrder{
 				Symbol: symbol,
 				Action: sentio.OrderSell,
@@ -100,7 +100,7 @@ func (s alpacaQQQ) Handle(market sentio.Market, proba float64) ([]sentio.Strateg
 			})
 		}
 
-		if t.Hour() == 19 && t.Minute() > 40 {
+		if t.Hour() == 19 && t.Minute() > 35 {
 			continue
 		}