Multiple Time Frames with TALIB and Tulip - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html) +--- Thread: Multiple Time Frames with TALIB and Tulip (/thread-57820.html) |
RE: Multiple Time Frames with TALIB and Tulip - fib0618 - 09-17-2019 (01-12-2019, 10:41 PM)mark.sch Wrote: I am glad it works for you. Did some tests in the past with volume based indicators also, but they did not outperform a traditional indicator like RSI during my tests. (05-09-2019, 01:38 AM)telnemri Wrote:Hey guys, did someone figure out and solution to improve the backtest speed (bottle neck is batch size 1)?(01-10-2019, 11:35 AM)mark.sch Wrote: Yes it is possible, but you will need to add some gekko core modifications. The problem is, that talib und tulip work async with their indicator calculations. So these calculations will either need proper callbacks or async/await patterns to work with the core without running into candle timing and race conditions. Many thanks. RE: Multiple Time Frames with TALIB and Tulip - mark.sch - 09-17-2019 Quote:Hey guys, did someone figure out and solution to improve the backtest speed (bottle neck is batch size 1)? The current Gekko implementation is affected by a problem called "stream backpressure" - due to the way streams are implemented in Gekko. It is a timing/race problem and occurs depending on (heavy) indicator usage and system speed. When the prob occurs, Gekko is eating up your memory and backtests results become random and faulty. Currently a workaround is implemented in Green Gekko to avoid memory leak and faulty backtests, in file: /core/markets/backtest.js if(!this.closed) { setTimeout(() => { this.get(); }, 5); } You may vary the setTimeout value from 1 to 10 depending on your system speed and strategy complexity. Lowering the value increases the backtest speed - but keep in mind to check the memory consumption of your gekko process to avoid false results. Best way will be to fix the Gekko stream implementation by following the node.js best practices and kick any artificial delay: https://nodejs.org/es/docs/guides/backpressuring-in-streams/ RE: Multiple Time Frames with TALIB and Tulip - Genoveva - 11-05-2019 The value of the setTimeout parameter can vary from 1 to 10 depending on the speed of the system and the complexity of the strategy. I read on software of this processor and there it was written that speed is very important sizzling-hot777.com . And so it says that if the speed is low, it is not very good. If I'm not mistaken that's exactly what happened. But if I were you, I'd check all the info. |