mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Merge pull request #4831 from JoeSchr/patch-2
Update strategy-advanced.md
This commit is contained in:
commit
27a9b2cc9f
|
@ -57,8 +57,7 @@ class AwesomeStrategy(IStrategy):
|
|||
trade_open_date = timeframe_to_prev_date(self.timeframe, trade.open_date_utc)
|
||||
trade_row = dataframe.loc[dataframe['date'] == trade_open_date].squeeze()
|
||||
|
||||
# Sell when price falls below value in stoploss column of taken buy signal.
|
||||
# above 20% profit, sell when rsi < 80
|
||||
# Above 20% profit, sell when rsi < 80
|
||||
if current_profit > 0.2:
|
||||
if trade_row['rsi'] < 80:
|
||||
return 'rsi_below_80'
|
||||
|
|
Loading…
Reference in New Issue
Block a user