-
Notifications
You must be signed in to change notification settings - Fork 2k
Simulations get super slow and consume 100% cpu #594
Comments
After digging around in the indicator and strategy code I think this slow perf has to do with the lookback and/or/in the for loops of the indicator? |
I also have this issue when simulating for more than 40 days, regardless of period (between 100 seconds and 30m) with a custom strategy and even with noop strategy. Changing keep_lookback_periods does not seem to affect this. If I simulate for 60 days and let it run slowly, after about 10 minutes the program crashes and it says it cannot allocate any more memory: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory |
same for me |
In my case I can't run simulation of MACD strategy on gdax.BTC-USD for more than 60 days, then it goes very slowly, about 1 day period a minute. @DeviaVir any thoughts why is that? |
add memory option to your command-line or insert it in zenbot.sh file
Inviato da iPhone
… Il giorno 22 ott 2018, alle ore 12:17, Alex Kozlov ***@***.***> ha scritto:
In my case I can't run simulation of MACD strategy on gdax.BTC-USD for more than 60 days, then it goes very slowly, about 1 day period a minute.
@DeviaVir any thoughts why is that?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
|
@leozzo The problem is not the memory, my CPU get's 100% load from the process. |
Seems on sim command I'm not spec, but something like this in sim.js will help:
|
I was trying to run a long simulation (more than a month) of my custom strategy on gdax.BTC-USD at 1m period and I faced this same problem, after 15 days the simulation turned very slow and cpu went to 100%. |
Reading issue #440, I saw that live trading limits the amount of data through the keep_lookback_periods param, so I answed myself that in live trading it shouldn't be a problem. |
It seems s.trades is not useful at all for simulations. What do you think? |
I've tried running the two month sim again without the size limitation on s.lookback and it worked well, so the speed problem was mainly caused by s.trades. |
Hi,
Im on node v8.0.0.
When starting a simulation it's starts very swiftly and runs through the first batch of periods quickly. However, soon after it starts grinding to a very slow pace of about a period per second while consuming 100% cpu.
It also depends on the used strategy. E.g. macd runs smoothly but srsi_macd is dead slow.
Any ideas?
The text was updated successfully, but these errors were encountered: