Hi,

I'd like to structure my algo into two or more files for better clarity and organization.

Individual function calls to the second file work as expected, however I cannot access QCAlgorithm methods such as self.Log because I get a “self not defined” error message if I remove the comment from the line #self.Log("This is tlt") in the second file called tlt.py (see attached backtest).

I guess I need to create a QCAlgorithm class out of my new functions f and g but how to do it escapes me. Any help will be much appreciated.

Cheers,

Andres