Open travisstaloch opened 6 years ago
@DeviaVir @Haehnchen I wanted to make sure you see this since you guys worked on #1383 .
Also, I was wrong. Darwin is still getting stuck once in a while (around 1 in every 100 sims hang). There is no error, just 1 progress indicator stops and I have to manually kill that process so that darwin can continue.
Also, i forgot that I had made a change to /lib/ta_ema.js line 60:
} else resolve()
Otherwise, the sim hangs at startup and never progresses.
After this change I am able to run the command
node zenbot.js sim gdax.LTC-USD --period_length=29m --min_periods=26 --markdown_buy_pct=1.271754225045159 --markup_sell_pct=1.8058192494168712 --order_type=taker --sell_stop_pct=9 --buy_stop_pct=21 --profit_stop_enable_pct=0 --profit_stop_pct=9 --trend_ema=33 --oversold_rsi_periods=42 --oversold_rsi=27 --backtester_generation=2 --strategy=ta_ema --days=2
Now I get output showing it completed and made 3 trades.
System information
Describe the problem
Command above produces 3 consecutive errors (below) and then the second error before darwin exits.
Source code / Error logs
TypeError: Cannot read property 'selector' of undefined at processOutput (E:\Users\Travis\Documents\Code\zenbot-unstable\scripts\genetic_backtester\darwin.js:501:24) ... TypeError: Cannot read property 'replace' of undefined at generateCommandParams (E:\Users\Travis\Documents\Code\zenbot-unstable\scripts\genetic_backtester\darwin.js:1130:24)
Solution
Promise.all([console.log('1')]).then(() => console.log('2')); console.log('3');
which produces output: 1 3 2 and shows that Promise.all() isn't blocking.Here is a working portion of strategies/ta_ema/strategy.js lines replacing lines 51-81.
Sorry I'm still working on being able to use git and make a pull request.