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.
I made some pull requests to target exactly this issue. You may have a look and pick what you need. You may also play with the Green Gekko fork, which has implemented this feature ready to go. In my own strategies I run 5 different candle sizes within one strategy on many different talib indicators for example.
(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.
I made some pull requests to target exactly this issue. You may have a look and pick what you need. You may also play with the Green Gekko fork, which has implemented this feature ready to go. In my own strategies I run 5 different candle sizes within one strategy on many different talib indicators for example.
Thanks Mark . i found your Green Geeko and it looks great indeed . i tried to make a simple strat just to console log macd,rsi,mfi showing 3 time frames ( 5,15,240)
(node:3012) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 515)
(node:3012) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property `id` of 'undefined' or 'null'.
at CandleBatcher.calculate (/root/gekko/core/candleBatcher.js:112:44)
at CandleBatcher.bound [as calculate] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at CandleBatcher.check (/root/gekko/core/candleBatcher.js:84:36)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
so can you please give example of having 2 time frames to show MFI , RSI Tulip . for 5 and 15 mins frames .
I added some code for proper candle warmup handling, otherwise you will get undefined indicator values during the first minutes/hours. Just match the history size in your config with the necessary history size of your indicators if you make any further changes.
You can use this strat now as a bare skelleton to start implementing any multi timeframe candle logic now. With the open source T5mainasync and T5multimarket strategies you have further examples how to use other tulip and talib async indicators. I removed the MFI indicator temporarily because it had a wrong syntax in your strat. You need to look into the tulip documentation which params it expects and what it returns. Good look with your coding.
=> apply your binance settings to the config again, I tested with kraken ETH EUR data because I had it locally available.