init
This commit is contained in:
@@ -23,21 +23,13 @@ class MonitorCoin (Monitor):
|
||||
if data is not None and not data.empty:
|
||||
try:
|
||||
inverseData= self.inverse_data(data)
|
||||
recent_inverseData = self.check_point(symbol, inverseData)
|
||||
if recent_inverseData['point'].iloc[-1] != 1:
|
||||
continue
|
||||
sell_success = self.sell_ticker_1h(symbol, recent_inverseData, balances)
|
||||
if not sell_success:
|
||||
continue
|
||||
recent_inverseData = self.annotate_signals(symbol, inverseData)
|
||||
if not self.buy_sell_ticker_1h(symbol, recent_inverseData, balances=balances, is_inverse=True):
|
||||
pass
|
||||
|
||||
data = self.calculate_technical_indicators(data)
|
||||
recent_data = self.check_point(symbol, data)
|
||||
|
||||
if recent_data['point'].iloc[-1] != 1:
|
||||
continue
|
||||
buy_success = self.buy_ticker_1h(symbol, recent_data)
|
||||
if not buy_success:
|
||||
continue
|
||||
recent_data = self.annotate_signals(symbol, data)
|
||||
_ = self.buy_sell_ticker_1h(symbol, recent_data, balances=None, is_inverse=False)
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error processing data for {symbol}: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user