Sfoglia il codice sorgente

QQQ15

- draft indicator.AtrTrailingStopLoss impl
Alexey Kim 2 settimane fa
parent
commit
85d0ccbdf5
2 ha cambiato i file con 6 aggiunte e 7 eliminazioni
  1. 0 7
      strategy/alpaca/qqq15/constants.go
  2. 6 0
      strategy/alpaca/qqq15/strategy.go

+ 0 - 7
strategy/alpaca/qqq15/constants.go

@@ -1,7 +0,0 @@
-package main
-
-const (
-	ATR_MULTIPLIER = 1.5
-	ATR_PERIOD     = 14
-	ATR_HHV        = 10
-)

+ 6 - 0
strategy/alpaca/qqq15/strategy.go

@@ -7,6 +7,12 @@ import (
 	"time"
 )
 
+const (
+	ATR_MULTIPLIER = 1.5
+	ATR_PERIOD     = 14
+	ATR_HHV        = 10
+)
+
 var Strategy = alpacaQQQ{}
 
 type alpacaQQQ struct{}