Skip to content

Instantly share code, notes, and snippets.

@Death916
Created July 10, 2017 18:00
Show Gist options
  • Save Death916/a14bd32d2e3c3492533b82d95376eec4 to your computer and use it in GitHub Desktop.
Save Death916/a14bd32d2e3c3492533b82d95376eec4 to your computer and use it in GitHub Desktop.
tracebk
Traceback (most recent call last):
File "backtest.py", line 17, in <module>
main(sys.argv[1:])
File "backtest.py", line 14, in main
strategy.tick(candlestick)
File "G:\code\python\GIT\FORKS\trading-bot-master\trading-bot-master\part3\botstrategy.py", line 25, in tick
self.evaluatePositions()
File "G:\code\python\GIT\FORKS\trading-bot-master\trading-bot-master\part3\botstrategy.py", line 36, in evaluatePositions
if int(self.currentPrice < (self.indicators.movingAverage(self.prices,15))):
TypeError: '<' not supported between instances of 'float' and 'NoneType'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment