up
This commit is contained in:
parent
27793e36d9
commit
eacad43b80
@ -246,7 +246,8 @@ class FreqaiPrimer(IStrategy):
|
|||||||
return df
|
return df
|
||||||
def populate_exit_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
|
def populate_exit_trend(self, df: DataFrame, metadata: dict) -> DataFrame:
|
||||||
# Compute sell_signal_high outside the conditions list
|
# Compute sell_signal_high outside the conditions list
|
||||||
# pair = metadata['pair']
|
|
||||||
|
pair = metadata['pair']
|
||||||
trade = Trade.get_trades([("pair", pair)]).first()
|
trade = Trade.get_trades([("pair", pair)]).first()
|
||||||
|
|
||||||
if trade and trade.is_open:
|
if trade and trade.is_open:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user