Tutorials

SuperFast SuperTrend

Build and backtest a streaming, multithreaded SuperTrend indicator

✅ Learn how to design and unit test a streaming indicator that processes data in a single pass and updates with each new data point. We will use the streaming SuperTrend indicator as our example, making it the fastest SuperTrend ever built in Python!

✅ Due to the GIL, most Python operations use only one core. Learn how to work around this limitation and build an indicator that uses all available cores!

✅ Learn how to design a proper backtesting pipeline. We will discuss and implement four different designs, ranging from the most modular and flexible to the fastest. As the cherry on top, we will perform 67,200 SuperTrend backtests in just one second!

Topics

Copyright © 20212026 Oleg Polakow. All rights reserved.

Site content and documentation are provided for using and evaluating VectorBT PRO and for educational purposes. Any other use, including building or supporting competing products or services, requires prior written consent.