Closed turbaszek closed 5 years ago
core_1 | [2019-02-09 16:33:26,349] - app - INFO : 172.22.0.1 - - [09/Feb/2019 16:33:26] "GET /BTCUSD?timeframe=3h&limit=20&untill=None HTTP/1.1" 200 - core_1 | [2019-02-09 16:34:51,612] - app - ERROR : Indicator channel12, error: /n Traceback (most recent call last): core_1 | File "/app/app/services/dataservice.py", line 142, in _make_indicators core_1 | indicators_values['channel12'] = channels.makeLongChannel(self.influx, self.pair, '12h', dates) core_1 | File "/app/app/ta/channels.py", line 174, in makeLongChannel core_1 | params = remakeChannel(influx, pair, timeframe, limit) core_1 | File "/app/app/ta/channels.py", line 166, in remakeChannel core_1 | ch.make() core_1 | File "/app/app/ta/channels.py", line 55, in make core_1 | new_params = self._channel(self.close, self.x_dates) core_1 | File "/app/app/ta/channels.py", line 149, in _channel core_1 | lm = np.poly1d(np.polyfit(x,y, 1)) core_1 | File "/usr/local/lib/python3.6/site-packages/numpy/lib/polynomial.py", line 602, in polyfit core_1 | raise TypeError("expected x and y to have same length") core_1 | TypeError: expected x and y to have same length core_1 | core_1 | [2019-02-09 16:34:51,618] - app - ERROR : Indicator wedge, error: /n Traceback (most recent call last): core_1 | File "/usr/local/lib/python3.6/site-packages/talib/__init__.py", line 20, in wrapper core_1 | for arg in chain(args, kwargs.values()) core_1 | StopIteration core_1 | core_1 | During handling of the above exception, another exception occurred: core_1 | core_1 | Traceback (most recent call last): core_1 | File "/app/app/services/dataservice.py", line 150, in _make_indicators core_1 | indicators_values['wedge'] = wg.make() core_1 | File "/app/app/ta/wedge.py", line 65, in make core_1 | new_params = self._wedge(short_close, self.x_dates) core_1 | File "/app/app/ta/wedge.py", line 114, in _wedge core_1 | point1 = f0(close[:-40], timeperiod=close_size-40)[-1] core_1 | File "/usr/local/lib/python3.6/site-packages/talib/__init__.py", line 24, in wrapper core_1 | return func(*args, **kwargs) core_1 | File "talib/_func.pxi", line 8332, in talib._ta_lib.MAXINDEX core_1 | Exception: inputs are all NaN core_1 | core_1 | [2019-02-09 16:34:51,676] - app - ERROR : Indicator wedge12, error: /n Traceback (most recent call last): core_1 | File "/app/app/services/dataservice.py", line 156, in _make_indicators core_1 | indicators_values['wedge12'] = wedge.makeLongWedge(self.influx, self.pair, '12h', dates) core_1 | File "/app/app/ta/wedge.py", line 207, in makeLongWedge core_1 | params = remakeWedge(influx, pair, timeframe, limit) core_1 | File "/app/app/ta/wedge.py", line 199, in remakeWedge core_1 | wg.make() core_1 | File "/app/app/ta/wedge.py", line 81, in make core_1 | info = self._tokens(upper_band, lower_band, short_close) core_1 | File "/app/app/ta/wedge.py", line 172, in _tokens core_1 | if np.sum(close[-n_last_points:] > upper_band[-n_last_points:]) > 0 and close[-1] < upper_band[-1]: core_1 | ValueError: operands could not be broadcast together with shapes (10,) (8,)
Nie mogę powtórzyć 👎