bwentzloff / trading-bot

Code seen in Cryptocurrency Trading YouTube video here: https://youtu.be/fpqzXgZjSqM
400 stars 262 forks source link

Indention error #49

Open josrya89 opened 5 years ago

josrya89 commented 5 years ago

I keep getting this error, even after changing the indention of all return lines to the same amount (3 indents each) "Traceback (most recent call last): File "C:\Users\josry\Desktop\trading bot\trading-bot-master\part 3\backtest.py", line 4, in from botstrategy import BotStrategy File "C:\Users\josry\Desktop\trading bot\trading-bot-master\part 3\botstrategy.py", line 2, in from botindicators import BotIndicators File "C:\Users\josry\Desktop\trading bot\trading-bot-master\part 3\botindicators.py", line 23 return a ^ IndentationError: unexpected indent

"

VediSys commented 5 years ago

>>> backtest.py

import sys, getopt

from botchart import BotChart from botstrategy import BotStrategy from botcandlestick import BotCandlestick

def main(argv):

chart = BotChart("poloniex", "BTC_XMR", 300)

strategy = BotStrategy()

for candlestick in chart.getPoints(): strategy.tick(candlestick)

if name == "main": main(sys.argv[1:])