You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use CustomFactor pipelines with minute-level data?
I'm currently encountering the following error when trying to attach a pipeline in the initialize function:
ValueError: Atleastonevalidassetidisrequired.
Here's some context:
I was successfully testing one of my strategies using daily data from a custom bundle I created. Then I decided to switch to a 1-minute data bundle to test other ideas. However, with the same setup that worked for daily data, I now get the error mentioned above when I try to attach a pipeline.
Here's a minimal example of the pipeline I'm using:
defmake_pipeline():
pipe=Pipeline(
columns={
'close': USEquityPricing.close.latest,
},
screen=USEquityPricing.close.latest.notnull(), # Replacing StaticAssets with a broader filter
)
returnpipe
And this is my initialize function:
definitialize(context):
# Define the stocks to tradecontext.asset= [symbol(ticker) fortickerinsymbol_list]
pipeline=make_pipeline()
attach_pipeline(pipeline, 'pipeline')
This works perfectly with daily data. But with 1-minute data, I get the ValueError. Interestingly, if I comment out the attach_pipeline line like this:
…the error goes away and the code runs fine (excluding the pipeline, of course).
This leads me to believe that pipelines are not compatible with minute-level data. Could someone please confirm if this is the case? I want to avoid spending more time trying to debug something that might be unsupported.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
Is it possible to use CustomFactor pipelines with minute-level data?
I'm currently encountering the following error when trying to attach a pipeline in the initialize function:
Here's some context:
I was successfully testing one of my strategies using daily data from a custom bundle I created. Then I decided to switch to a 1-minute data bundle to test other ideas. However, with the same setup that worked for daily data, I now get the error mentioned above when I try to attach a pipeline.
Here's a minimal example of the pipeline I'm using:
And this is my initialize function:
This works perfectly with daily data. But with 1-minute data, I get the ValueError. Interestingly, if I comment out the attach_pipeline line like this:
…the error goes away and the code runs fine (excluding the pipeline, of course).
This leads me to believe that pipelines are not compatible with minute-level data. Could someone please confirm if this is the case? I want to avoid spending more time trying to debug something that might be unsupported.
Thanks in advance!
The text was updated successfully, but these errors were encountered: