bitunix-automated-crypto-trading 3.1.8__tar.gz → 3.1.9__tar.gz

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.
Files changed (23) hide show
  1. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/PKG-INFO +1 -1
  2. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/SupportResistance.py +2 -2
  3. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading.egg-info/PKG-INFO +1 -1
  4. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/setup.py +1 -1
  5. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/README.md +0 -0
  6. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/AsyncThreadRunner.py +0 -0
  7. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/BitunixApi.py +0 -0
  8. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/BitunixSignal.py +0 -0
  9. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/BitunixWebSocket.py +0 -0
  10. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/DataFrameHtmlRenderer.py +0 -0
  11. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/NotificationManager.py +0 -0
  12. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/ThreadManager.py +0 -0
  13. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/TickerManager.py +0 -0
  14. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/__init__.py +0 -0
  15. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/bitunix.py +0 -0
  16. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/config.py +0 -0
  17. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading/logger.py +0 -0
  18. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading.egg-info/SOURCES.txt +0 -0
  19. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading.egg-info/dependency_links.txt +0 -0
  20. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading.egg-info/entry_points.txt +0 -0
  21. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading.egg-info/requires.txt +0 -0
  22. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/bitunix_automated_crypto_trading.egg-info/top_level.txt +0 -0
  23. {bitunix_automated_crypto_trading-3.1.8 → bitunix_automated_crypto_trading-3.1.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 3.1.8
3
+ Version: 3.1.9
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001
@@ -94,13 +94,13 @@ class SupportResistance:
94
94
 
95
95
  # Find all local peaks and troughs and its highest and lowest values
96
96
  peak_indices_all = self._find_peaks(high_prices)
97
- if len(peak_indices_all) == 0:
97
+ if len(peak_indices_all) > 0:
98
98
  highest_peak_index = peak_indices_all[np.argmax(high_prices[peak_indices_all])]
99
99
  highest_peak_value = high_prices[highest_peak_index]
100
100
  resistance_line[highest_peak_index:] = high_prices[highest_peak_index] # Horizontal line from the highest point onwards
101
101
 
102
102
  trough_indices_all = self._find_troughs(low_prices)
103
- if len(trough_indices_all) == 0:
103
+ if len(trough_indices_all) > 0:
104
104
  lowest_peak_index = trough_indices_all[np.argmin(low_prices[trough_indices_all])]
105
105
  lowest_peak_value = low_prices[lowest_peak_index]
106
106
  support_line[lowest_peak_index:] = low_prices[lowest_peak_index] # Horizontal line from the lowset point onwards
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitunix_automated_crypto_trading
3
- Version: 3.1.8
3
+ Version: 3.1.9
4
4
  Summary: Bitunix Futures Auto Trading Platform
5
5
  Home-page: https://github.com/tcj2001/bitunix-automated-crypto-trading
6
6
  Author: tcj2001
@@ -66,7 +66,7 @@ class CustomInstall(install):
66
66
 
67
67
  setup(
68
68
  name="bitunix_automated_crypto_trading",
69
- version="3.1.8",
69
+ version="3.1.9",
70
70
  license="MIT",
71
71
  author="tcj2001",
72
72
  author_email="thomsonmathews@hotmail.com",