Merge branch 'test-freqtradebot-usdt' into lev-freqtradebot
This commit is contained in:
@@ -16,8 +16,8 @@ from freqtrade.configuration import validate_config_consistency
|
||||
from freqtrade.data.converter import order_book_to_dataframe
|
||||
from freqtrade.data.dataprovider import DataProvider
|
||||
from freqtrade.edge import Edge
|
||||
from freqtrade.enums import (Collateral, RPCMessageType, SellType, SignalDirection, State,
|
||||
TradingMode)
|
||||
from freqtrade.enums import (Collateral, RPCMessageType, SellType, SignalDirection, SignalTagType,
|
||||
State, TradingMode)
|
||||
from freqtrade.exceptions import (DependencyException, ExchangeError, InsufficientFundsError,
|
||||
InvalidOrderException, PricingError)
|
||||
from freqtrade.exchange import timeframe_to_minutes, timeframe_to_seconds
|
||||
@@ -442,7 +442,9 @@ class FreqtradeBot(LoggingMixin):
|
||||
|
||||
# running get_signal on historical data fetched
|
||||
(signal, enter_tag) = self.strategy.get_entry_signal(
|
||||
pair, self.strategy.timeframe, analyzed_df
|
||||
pair,
|
||||
self.strategy.timeframe,
|
||||
analyzed_df
|
||||
)
|
||||
|
||||
if signal:
|
||||
@@ -455,9 +457,8 @@ class FreqtradeBot(LoggingMixin):
|
||||
if self._check_depth_of_market(
|
||||
pair,
|
||||
bid_check_dom,
|
||||
side=side
|
||||
side=signal
|
||||
):
|
||||
|
||||
return self.execute_entry(pair, stake_amount, enter_tag=enter_tag)
|
||||
else:
|
||||
return False
|
||||
|
Reference in New Issue
Block a user