I am trying to run the mean reversion strategy based on an ETF and 500 US stocks. As per instructions I did not change the code at all and expect it to work outside the box in this exercise.
It follows the code snippet affected for context and the error logs thrown by the console.
Please let me know how this can be fixed.
"""
Title: Long-Short Portfolio Strategy Template
Description: The long-short portfolio is implemented by making positions
on the SP500 constituents using pipelines.
Dataset: US Equities
############################# DISCLAIMER #############################
This is a strategy template only and should not be
used for live trading without appropriate backtesting and tweaking of
the strategy parameters.
######################################################################
"""
# Import numpy
import numpy as np
from blueshift.pipeline import CustomFactor
from blueshift.pipeline.data import EquityPricing
# Import blueshift libraries
from blueshift_library.pipelines.pipelines import average_volume_filter
Throws the following error:
- [ERROR]
Blueshift Alert(ff567251-c1e3-459e-be5c-67bd0c6595a8)2026-01-02 16:49:59.143764-05:00: Algo reported status created:Failed to create algo: Error in line 21, file <>:Import from blueshift_library is deprecated. Use blueshift.library instead…
- [PLATFORM]
Failed to create algo: Error in line 21, file <>:Import from blueshift_library is deprecated. Use blueshift.library instead…
- [PLATFORM]
Blueshift Alert(ff567251-c1e3-459e-be5c-67bd0c6595a8)2026-01-02 16:49:59.149959-05:00: Algo run ff567251-c1e3-459e-be5c-67bd0c6595a8 finished.