merged lev-freqtradebot with lev-strat
This commit is contained in:
@@ -122,7 +122,7 @@ class {{ strategy }}(IStrategy):
|
||||
{{ buy_trend | indent(16) }}
|
||||
(dataframe['volume'] > 0) # Make sure Volume is not 0
|
||||
),
|
||||
'buy'] = 1
|
||||
'enter_long'] = 1
|
||||
|
||||
return dataframe
|
||||
|
||||
@@ -138,6 +138,6 @@ class {{ strategy }}(IStrategy):
|
||||
{{ sell_trend | indent(16) }}
|
||||
(dataframe['volume'] > 0) # Make sure Volume is not 0
|
||||
),
|
||||
'sell'] = 1
|
||||
'exit_long'] = 1
|
||||
return dataframe
|
||||
{{ additional_methods | indent(4) }}
|
||||
|
@@ -354,7 +354,7 @@ class SampleStrategy(IStrategy):
|
||||
(dataframe['tema'] > dataframe['tema'].shift(1)) & # Guard: tema is raising
|
||||
(dataframe['volume'] > 0) # Make sure Volume is not 0
|
||||
),
|
||||
'buy'] = 1
|
||||
'enter_long'] = 1
|
||||
|
||||
dataframe.loc[
|
||||
(
|
||||
@@ -383,7 +383,8 @@ class SampleStrategy(IStrategy):
|
||||
(dataframe['tema'] < dataframe['tema'].shift(1)) & # Guard: tema is falling
|
||||
(dataframe['volume'] > 0) # Make sure Volume is not 0
|
||||
),
|
||||
'sell'] = 1
|
||||
|
||||
'exit_long'] = 1
|
||||
|
||||
dataframe.loc[
|
||||
(
|
||||
|
Reference in New Issue
Block a user