2
0
Quellcode durchsuchen

Alpaca: qqq06f

- LONG: prevent LONG positions if current price is under DEMA(8)
- decrease order size down to .3 if its after 4pm
Alexey Kim vor 1 Monat
Ursprung
Commit
aba8f02121
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      strategy/alpaca/qqq06f/strategy.go

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

@@ -109,8 +109,8 @@ func (s alpacaQQQ) Handle(market sentio.Market, proba float64) ([]sentio.Strateg
 				continue
 			}
 
-			// prevent LONG positions if current price is under DEMA(8)
-			if lb.Close/dema[0] < .999 {
+			// prevent LONG positions if current price is greater DEMA(8)
+			if lb.Close/dema[0] > .999 {
 				continue
 			}