Open r-neri opened 6 years ago
Same problem here
Ok i found the problem. This occurs only in the first time of the function mkvingAverage is called. On this situation ths function doesent returns any value so raise the error. To correct this change the fuction and include a elseof statement to return a value
i have the same problem and the solution above doesn't help. anyone else have a way to overcome?
Using the part 3 backtest.py this error occur any guess how to resolve this ?
File "C:\Users\rogerio.LAPTOP_ROGER\PycharmProjects\Part3_bot\botstrategy.py", line 32, in evaluatePositions if (self.currentPrice < self.indicators.movingAverage(self.prices,15)): TypeError: '<' not supported between instances of 'float' and 'NoneType'