Browse Source

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 1 month ago
parent
commit
aba8f02121
1 changed files with 2 additions and 2 deletions
  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
 				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
 				continue
 			}
 			}