mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix backtesting test
This commit is contained in:
parent
2e50948699
commit
49350f2a8e
|
@ -123,7 +123,7 @@ def _trend(signals, buy_value, sell_value):
|
|||
n = len(signals['low'])
|
||||
buy = np.zeros(n)
|
||||
sell = np.zeros(n)
|
||||
for i in range(0, len(signals['enter_long'])):
|
||||
for i in range(0, len(signals['date'])):
|
||||
if random.random() > 0.5: # Both buy and sell signals at same timeframe
|
||||
buy[i] = buy_value
|
||||
sell[i] = sell_value
|
||||
|
|
Loading…
Reference in New Issue
Block a user