Feel free to ask questions here if you have issue with this assignment.
First to blog!!! Done it and loving the whole training course!!!
Everything seems to work well when executing only one Moving Averages at a time.
On the other hand, when trying to request results from the three MA’s together at the same time the terminal always gives following error on the first module.exports in the indicators file.
So when I put minutely MA first in the file:
TypeError: indicators.minutelyMovingAverage is not a function
at Object.<anonymous> (/Users/jebeljohm/Documents/Crypto/Ivan Programming/Tradingbots/index.js:14:12)
When I put hourly MA first in the file:
TypeError: indicators.hourlyMovingAverage is not a function
at Object.<anonymous> (/Users/jebeljohm/Documents/Crypto/Ivan Programming/Tradingbots/index.js:18:12)
How do you get more than 31 days of historical data using the histoDay function.
I am unable to figure that out.
I think it might be the fact that there has to be a comma between the functions under module.exports in the indicators.js file.
Hi Inus, correct! I did three seperate exports modules, that’s why it didn’t work.
Thanks a lot !!