Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Investing using Python: Fast and simple vectorized backtesting using Python, pandas

$
0
0
Unlike event driven backtesting where we do calculations on each new arrived data element, we can do simple, fast, but very flexible backtest on the entire vector at once. First, we get the returns data (will be using MongoDB from now on): [crayon-56cddec756e8c491947429/] Let's try to tests simple thing - mean reversion strategy where we buy large down […]

Viewing all articles
Browse latest Browse all 22462

Trending Articles