I have a pycharm project with two .py files signal.py
and moving_average.py
.
signal.py
It looks something like this:
class signal_class(object):
long_short = 0
underlying = ""
def abc(self,...):
and moving_average.py
looks something like this:
import signal
import stock_wrapper
import pandas as pd
import signal
class SMA(signal.signal_class):
df = None
s_w = None
Which looks right for me, but when I try to start, I get the following error:
class SMA(signal.signal_class):
AttributeError: 'module' object has no attribute 'signal_class'
The error is displayed from the linear market above.
I thought I was closely following the textbook, but I'm not sure what causes this.
Thanks so much for anyone who can help with this.
source
share