RSI = 0 first view candles
#6
Add a history size to your tradingAdvisor config, like this:

config.tradingAdvisor = {
enabled: true,
method: 'myStrat',
candleSize: 60,
historySize: 14
}

This will force Gekko to call your strategy update function 14 times until it calls the check function for the first time, so all your indicator candle arrays are prepared and will give you valid results. At least this will work in the CLI version, not sure if it is already in the UI version - in the past it was not.
  Reply


Messages In This Thread
RSI = 0 first view candles - by PrimalFury - 09-23-2018, 04:23 PM
RE: RSI = 0 first view candles - by cubit - 09-23-2018, 07:55 PM
RE: RSI = 0 first view candles - by PrimalFury - 09-23-2018, 08:17 PM
RE: RSI = 0 first view candles - by cubit - 09-23-2018, 08:28 PM
RE: RSI = 0 first view candles - by cubit - 09-23-2018, 08:30 PM
RE: RSI = 0 first view candles - by mark.sch - 09-24-2018, 07:40 AM

Forum Jump:


Users browsing this thread: