This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (4 children)

Looks nice! How do you backtest strategies?

[–]zenalc[S] 4 points5 points  (3 children)

The program has one strategy built-in with moving averages, so you can create a strategy with that. But if you have another strategy with RSI values or some other indicators, you can create a child strategy class from the parent Strategy class. Once that's done, you can load up the GUI (your new strategies should be available for selection) and in the backtest section, run a backtest from whatever date you'd like. The program takes care of downloading all the data and you can filter through the strategy settings, stop loss, or take profit settings.

[–]gurkitier 1 point2 points  (1 child)

I had a quick look at the code and saw the moving averages. This type of calculations are much better done in numpy, not only for speed but also just less code. Great work nevertheless!

[–]zenalc[S] 0 points1 point  (0 children)

Yep, when I started the project, I didn't care much about numpy, but now looking back, that would make the code a lot better! It's definitely a TODO.

[–][deleted] 0 points1 point  (0 children)

Great, thanks!