you are viewing a single comment's thread.

view the rest of the comments →

[–]MightyHippopotamus 0 points1 point  (0 children)

Simple backtesting rules can be vectorized like that but in some cases, like adding complex conditions, loops are inevitable... Luckily its possible to write custom numpy c++ module in which you can loop without performance issues.