anfederico / gemini

Backtesting for sleepless cryptocurrency markets
GNU General Public License v3.0
709 stars 161 forks source link

Why Logic is function? #2

Closed Kroid closed 7 years ago

Kroid commented 7 years ago

Why Logic is function, not class? What is you need to set init options, like self.invested (true/false), self.sma_frame, self.ticker, etc?

anfederico commented 7 years ago

Because the logic function wraps around the Account class to alter it. I'm not sure I see the benefit in making it a class.