I have this algo, that select stocks based on fundamental variables and technical values. In the coarce function I use the selectionData() object to update values of short and long moving average as well as volume in order to make calculations and then pick stocks based on these values.

 

Im trying to understand all this logic. What I not understand is that in the first filter, that I called "filtered", ,the lenght of stocks are around 90 to 100. And then when these stocks are passed to the stateData dictionary in order to update for the target indicators, then when I filter the list of stocks where is_ready is true, in the values list comprehension, it returns only a few stocks at first, and then that list start to increment. But both list are very different in length and I dont understand why.

 

My question is, why the "values" list is so small in relation to the "filtered" list?

 

Thanks,

Nicolás