working on more strategies, Quicke is only one really working well so far
This commit is contained in:
parent
e0bdb6089e
commit
3f1b48ba94
@ -60,21 +60,18 @@ class Quickie(IStrategy):
|
||||
(dataframe['tema'] > dataframe['tema'].shift(1)) &
|
||||
(dataframe['sma_200'] > dataframe['close'])
|
||||
)
|
||||
|
|
||||
(
|
||||
(dataframe['sma_200'] > dataframe['close']) &
|
||||
(dataframe['sma_50'] < dataframe['sma_200'])
|
||||
)
|
||||
),
|
||||
'buy'] = 1
|
||||
return dataframe
|
||||
|
||||
def populate_sell_trend(self, dataframe: DataFrame) -> DataFrame:
|
||||
dataframe.loc[
|
||||
(
|
||||
(
|
||||
(dataframe['adx'] > 70) &
|
||||
(dataframe['tema'] > dataframe['bb_middleband']) &
|
||||
(dataframe['tema'] < dataframe['tema'].shift(1))
|
||||
)
|
||||
),
|
||||
'sell'] = 1
|
||||
return dataframe
|
||||
|
Loading…
Reference in New Issue
Block a user