There is probably an easy solution to this, but i can't seem to wrap my head around it.
I have made a custom filter named vol_spike, what I would like to achieve, is to within the pipeline, check whether a spike bigger then for example 3 have occurred within the the last 30 days.
My thinking was to use the np.max in a custom filter to check for the largest spike, and then control whether that was bigger than 3.
As it turns out i am having trouble getting the value from one filter into another filter? so is it possible to create a filter within a filter of different windows or do any one have any suggestions on how to go about this ?
Alternative 2 would be to work with the dataframe produced by the pipeline, but i am struggling to single out just one company and working with its data, instead it mixes up data from other companies as they are lined up in the columns.
Hope any one have an input!