Username: Password:

Author Topic: TypeError: Cannot read property '-1' of undefined  (Read 10477 times)

Offline Zeke

  • Rookie
  • *
  • Posts: 6
    • View Profile
TypeError: Cannot read property '-1' of undefined
« on: January 24, 2021, 03:14:56 PM »
Hi friends

I am constantly getting the following error:

TypeError: Cannot read property '-1' of undefined
    at timeseries.SolveLE (/snapshot/node14Win/node_modules/timeseries-analysis/timeseries-analysis.js:993:22)
    at timeseries.ARLeastSquare (/snapshot/node14Win/node_modules/timeseries-analysis/timeseries-analysis.js:942:20)
    at /snapshot/node14Win/gain.js
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Dowloading gunbot again does not help. Running gb on a raspi.

What's wrong? And could this error affect the trading? The bot seems to have a crossup-, crossdown-recognition problem. It constantly buys at a crossdown (macd, SMAcross).

All the best!
Zeke

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot read property '-1' of undefined
« Reply #1 on: January 28, 2021, 09:41:11 PM »
Hi friends

I am constantly getting the following error:

TypeError: Cannot read property '-1' of undefined
    at timeseries.SolveLE (/snapshot/node14Win/node_modules/timeseries-analysis/timeseries-analysis.js:993:22)
    at timeseries.ARLeastSquare (/snapshot/node14Win/node_modules/timeseries-analysis/timeseries-analysis.js:942:20)
    at /snapshot/node14Win/gain.js
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Dowloading gunbot again does not help. Running gb on a raspi.

What's wrong? And could this error affect the trading? The bot seems to have a crossup-, crossdown-recognition problem. It constantly buys at a crossdown (macd, SMAcross).

All the best!
Zeke

Hi Zeke, check this please:

https://gunbot.shop/fix-cannot-read-property-1-of-undefined-error-on-gunbot/