removing global variable modification
This commit is contained in:
parent
133ba5d6a1
commit
bcecaa69d4
@ -33,8 +33,6 @@ class Edge():
|
|||||||
|
|
||||||
def __init__(self, config: Dict[str, Any], exchange=None) -> None:
|
def __init__(self, config: Dict[str, Any], exchange=None) -> None:
|
||||||
|
|
||||||
# Increasing recursive limit as with need it for large datasets
|
|
||||||
sys.setrecursionlimit(10000)
|
|
||||||
self.config = config
|
self.config = config
|
||||||
self.exchange = exchange
|
self.exchange = exchange
|
||||||
self.strategy: IStrategy = StrategyResolver(self.config).strategy
|
self.strategy: IStrategy = StrategyResolver(self.config).strategy
|
||||||
|
@ -203,7 +203,7 @@ class IStrategy(ABC):
|
|||||||
return buy, sell
|
return buy, sell
|
||||||
|
|
||||||
def should_sell(self, trade: Trade, rate: float, date: datetime, buy: bool,
|
def should_sell(self, trade: Trade, rate: float, date: datetime, buy: bool,
|
||||||
sell: bool, force_stoploss=0) -> SellCheckTuple:
|
sell: bool, force_stoploss: float=0) -> SellCheckTuple:
|
||||||
"""
|
"""
|
||||||
This function evaluate if on the condition required to trigger a sell has been reached
|
This function evaluate if on the condition required to trigger a sell has been reached
|
||||||
if the threshold is reached and updates the trade record.
|
if the threshold is reached and updates the trade record.
|
||||||
|
Loading…
Reference in New Issue
Block a user