Candleprops – huh?

For Talib strategies Gekko writes out the last 1000 candle data elements into arrays called Candleprops. I find these arrays incredibly helpful when writing strategies as you can do time based look backs easily rather than manually managing your own history arrays in a strategy.

If you want to use the candleprops array in a non talib using Strategy then do the following:

open plugins/baseTradingMethods.js and commend out the line below and the corresponding close bracket:

// if(this.asyncTick) {

Then go to your strategy and write console.log(this); in the update method and look for the candleprops arrays.

Note: baseTradingMethod is a core Gekko file so you should make this change only if you’re comfortable managing this change yourself.