remove unnecessary calculation

This commit is contained in:
Janne Sinivirta 2017-11-15 20:07:57 +02:00
parent 1b6a60ecb2
commit 174122a09b

View File

@ -59,7 +59,6 @@ def buy_strategy_generator(params):
dataframe.loc[
reduce(lambda x, y: x & y, conditions),
'buy'] = 1
dataframe.loc[dataframe['buy'] == 1, 'buy_price'] = dataframe['close']
return dataframe
return populate_buy_trend