bitunix-automated-crypto-trading 3.1.6__py3-none-any.whl → 3.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bitunix_automated_crypto_trading/TickerManager.py +10 -7
- bitunix_automated_crypto_trading/config.py +1 -0
- {bitunix_automated_crypto_trading-3.1.6.dist-info → bitunix_automated_crypto_trading-3.1.7.dist-info}/METADATA +1 -1
- {bitunix_automated_crypto_trading-3.1.6.dist-info → bitunix_automated_crypto_trading-3.1.7.dist-info}/RECORD +7 -7
- {bitunix_automated_crypto_trading-3.1.6.dist-info → bitunix_automated_crypto_trading-3.1.7.dist-info}/WHEEL +0 -0
- {bitunix_automated_crypto_trading-3.1.6.dist-info → bitunix_automated_crypto_trading-3.1.7.dist-info}/entry_points.txt +0 -0
- {bitunix_automated_crypto_trading-3.1.6.dist-info → bitunix_automated_crypto_trading-3.1.7.dist-info}/top_level.txt +0 -0
@@ -65,13 +65,16 @@ class Interval:
|
|
65
65
|
|
66
66
|
# Break of Strcuture
|
67
67
|
if self.settings.BOS_STUDY:
|
68
|
-
high
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
68
|
+
if df['high'].size > 1 and df['low'].size > 1 and df['close'].size > 1:
|
69
|
+
high = talib.MAX(df.iloc[:-1]['high'].values, timeperiod=self.settings.BOS_PERIOD)[-1]
|
70
|
+
low = talib.MIN(df.iloc[:-1]['low'].values, timeperiod=self.settings.BOS_PERIOD)[-1]
|
71
|
+
close = df['close'].iloc[-1]
|
72
|
+
if close > high:
|
73
|
+
self.bos_signal = "BUY"
|
74
|
+
elif close < low:
|
75
|
+
self.bos_signal = "SELL"
|
76
|
+
else:
|
77
|
+
self.bos_signal = "HOLD"
|
75
78
|
else:
|
76
79
|
self.bos_signal = "HOLD"
|
77
80
|
else:
|
@@ -22,6 +22,7 @@ class Settings(BaseSettings):
|
|
22
22
|
BARS: int = Field(default=100, ge=1)
|
23
23
|
|
24
24
|
# Technical Indicators Parameters
|
25
|
+
BOS_PERIOD: int = Field(default=20, ge=1)
|
25
26
|
MA_FAST: int = Field(default=10, ge=1)
|
26
27
|
MA_MEDIUM: int = Field(default=20, ge=1)
|
27
28
|
MA_SLOW: int = Field(default=50, ge=1)
|
@@ -6,13 +6,13 @@ bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py,sha256=Pqdzhh_nfIxFEZH
|
|
6
6
|
bitunix_automated_crypto_trading/NotificationManager.py,sha256=pqDquEe-oujD2v8B543524vo62aRMjfB4YW-3DMhVGQ,795
|
7
7
|
bitunix_automated_crypto_trading/SupportResistance.py,sha256=Dx4uBC4On-GO1t2EFk02jzSmZzaMD48mUJI9rG2rgMo,4946
|
8
8
|
bitunix_automated_crypto_trading/ThreadManager.py,sha256=WmYRQu8aNrgp5HwSqpBqX1WESNSEpbD2CznPFpd9HuI,2330
|
9
|
-
bitunix_automated_crypto_trading/TickerManager.py,sha256=
|
9
|
+
bitunix_automated_crypto_trading/TickerManager.py,sha256=5V86dZEEFIFf2W1-qWKYuK0E9L7lxcK_TyaVAzS1OEg,41769
|
10
10
|
bitunix_automated_crypto_trading/__init__.py,sha256=1hzk6nX8NnUCr1tsq8oFq1qGCNhNwnwldWE75641Eew,78
|
11
11
|
bitunix_automated_crypto_trading/bitunix.py,sha256=Zyrf8P-xi7DJogX_bcc6uDW66J7FAxdS-0jbuHRPFfM,25845
|
12
|
-
bitunix_automated_crypto_trading/config.py,sha256=
|
12
|
+
bitunix_automated_crypto_trading/config.py,sha256=zio989qxqU52dCdyUvudtBqVZpDCGLgypy09cECcAc0,5070
|
13
13
|
bitunix_automated_crypto_trading/logger.py,sha256=tAaTQcv5r--zupk_Fhfe1USfBAzSiXzVa4QRnaOFIFY,2933
|
14
|
-
bitunix_automated_crypto_trading-3.1.
|
15
|
-
bitunix_automated_crypto_trading-3.1.
|
16
|
-
bitunix_automated_crypto_trading-3.1.
|
17
|
-
bitunix_automated_crypto_trading-3.1.
|
18
|
-
bitunix_automated_crypto_trading-3.1.
|
14
|
+
bitunix_automated_crypto_trading-3.1.7.dist-info/METADATA,sha256=4lxIzSR06V9fh5oVzCHDgISGb21zE8JeV7vPbroiJnY,996
|
15
|
+
bitunix_automated_crypto_trading-3.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
+
bitunix_automated_crypto_trading-3.1.7.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
|
17
|
+
bitunix_automated_crypto_trading-3.1.7.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
|
18
|
+
bitunix_automated_crypto_trading-3.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|